Skip to content

Commit

Permalink
Switch to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
asherber committed Aug 18, 2024
1 parent d8979d3 commit d4d8531
Show file tree
Hide file tree
Showing 7 changed files with 2,001 additions and 7 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI
on: [ push, pull_request, workflow_dispatch ]
jobs:
Build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8

- name: NuGet cache
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Build
run: |
dotnet restore --locked-mode
dotnet build
- name: Test
run: dotnet test --no-build -v normal --logger trx

- name: Publish unit test report
uses: dorny/[email protected]
if: success() || failure()
with:
name: Unit Test Report
path: '**/*.trx'
reporter: dotnet-trx
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![Icon](https://github.com/asherber/Xunit.Priority/raw/master/media/xunit-priority-64.png)

# 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)
# 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)

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

Expand Down
4 changes: 4 additions & 0 deletions Xunit.Priority.Tests/Xunit.Priority.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
<ItemGroup>
<ProjectReference Include="..\Xunit.Priority\Xunit.Priority.csproj" />
</ItemGroup>

<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
</Project>
Loading

0 comments on commit d4d8531

Please sign in to comment.