Skip to content

Commit

Permalink
test reporter on build action
Browse files Browse the repository at this point in the history
  • Loading branch information
ninetailsrabbit committed Jun 5, 2024
1 parent 1b812a8 commit 2e9ae09
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ jobs:
- name: Install dependencies
run: dotnet restore
- name: Test with dotnet
run: dotnet test ${{ vars.CSPROJ_TESTS_PATH }} --logger trx --results-directory "TestResults-8.0"
run: dotnet test ${{ vars.CSPROJ_TESTS_PATH }} --logger "trx;LogFileName=test-results.trx" || true
- name: Test Report
uses: dorny/test-reporter@v1.9.1
if: always()
with:
name: Dotnet Tests result
path: "**/test-results.trx"
reporter: dotnet-trx
fail-on-error: true
- name: Build and Pack NuGet package with versioning
run: dotnet pack ${{ vars.CSPROJ_PATH }} -p:GeneratePackageOnBuild=false -p:Version='${{ steps.gitversion.outputs.SemVer }}' -c Release

Expand Down

0 comments on commit 2e9ae09

Please sign in to comment.