Skip to content

Commit

Permalink
Add test report as check run
Browse files Browse the repository at this point in the history
  • Loading branch information
damirarh committed Jul 13, 2024
1 parent 7c7677b commit 4c3d87a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/20240719-dotnet-github-actions-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
- "**/*.gitattributes"
workflow_dispatch:

permissions:
contents: read
actions: read
checks: write

jobs:
build:
name: Build
Expand Down Expand Up @@ -46,4 +51,12 @@ jobs:
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test
run: dotnet test --logger trx

- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Tests
path: WebApi.Tests/TestResults/*.trx
reporter: dotnet-trx

0 comments on commit 4c3d87a

Please sign in to comment.