Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Test Results to PR #278

Merged
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
TEST_RESULTS: artifacts/tests
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,6 +14,19 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- run: dotnet --info
- name: Build solution and run all tests
run: dotnet test --verbosity normal
run: dotnet test --verbosity normal -l trx --results-directory '${{ env.TEST_RESULTS }}'

- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: ${{ success() || failure() }}
with:
files: '${{ env.TEST_RESULTS }}/*.trx'
check_name: "Test results"
report_individual_runs: true
action_fail: true
time_unit: milliseconds
#ignore_runs: true
compare_to_earlier_commit: false