Skip to content

Commit 13b929e

Browse files
committed
Merge branch 'actions'
2 parents 8199dd4 + d4d8531 commit 13b929e

File tree

8 files changed

+2004
-10
lines changed

8 files changed

+2004
-10
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

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup>
44
<PackageReference Include="Nerdbank.GitVersioning">
5-
<Version>3.0.24</Version>
5+
<Version>3.6.139</Version>
66
<PrivateAssets>all</PrivateAssets>
77
</PackageReference>
88
</ItemGroup>

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/blob/main/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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.2;net462</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net472</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

99
<ItemGroup>
1010
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
11-
<PackageReference Include="xunit" Version="2.3.1" />
11+
<PackageReference Include="xunit" Version="2.9.0" />
1212
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
1313
<PackageReference Include="FluentAssertions" Version="5.8.0" />
1414
</ItemGroup>
1515

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)