Skip to content

Commit d4d8531

Browse files
committed
Switch to GitHub actions
1 parent d8979d3 commit d4d8531

File tree

7 files changed

+2001
-7
lines changed

7 files changed

+2001
-7
lines changed

.github/workflows/CI.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
on: [ push, pull_request, workflow_dispatch ]
3+
jobs:
4+
Build:
5+
runs-on: windows-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v4
9+
with:
10+
fetch-depth: 0
11+
12+
- name: Setup dotnet
13+
uses: actions/setup-dotnet@v4
14+
with:
15+
dotnet-version: 8
16+
17+
- name: NuGet cache
18+
uses: actions/cache@v4
19+
with:
20+
path: ~/.nuget/packages
21+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-nuget-
24+
25+
- name: Build
26+
run: |
27+
dotnet restore --locked-mode
28+
dotnet build
29+
30+
- name: Test
31+
run: dotnet test --no-build -v normal --logger trx
32+
33+
- name: Publish unit test report
34+
uses: dorny/[email protected]
35+
if: success() || failure()
36+
with:
37+
name: Unit Test Report
38+
path: '**/*.trx'
39+
reporter: dotnet-trx

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![Icon](https://github.com/asherber/Xunit.Priority/raw/master/media/xunit-priority-64.png)
22

3-
# Xunit.Priority [![NuGet](https://img.shields.io/nuget/v/Xunit.Priority.svg)](https://nuget.org/packages/Xunit.Priority) [![Build status](https://ci.appveyor.com/api/projects/status/h9kxm1ocxtcvf4iu/branch/master?svg=true)](https://ci.appveyor.com/project/asherber/xunit-priority/branch/master)
3+
# Xunit.Priority [![NuGet](https://img.shields.io/nuget/v/Xunit.Priority.svg)](https://nuget.org/packages/Xunit.Priority) [![Build status](https://github.com/asherber/Xunit.Priority/actions/workflows/CI.yml/badge.svg)](https://github.com/asherber/Xunit.Priority/actions)
44

55
Provides an `ITestCaseOrderer` that allows you to control the order of execution of Xunit tests within a class.
66

Xunit.Priority.Tests/Xunit.Priority.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@
1616
<ItemGroup>
1717
<ProjectReference Include="..\Xunit.Priority\Xunit.Priority.csproj" />
1818
</ItemGroup>
19+
20+
<PropertyGroup>
21+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
22+
</PropertyGroup>
1923
</Project>

0 commit comments

Comments
 (0)