Skip to content

Commit

Permalink
add test reporting step to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dombrovsky committed Sep 20, 2023
1 parent 29dd846 commit eb38356
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ on:

jobs:
build:

runs-on: ubuntu-latest

permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v3
Expand All @@ -25,4 +28,12 @@ jobs:
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
run: dotnet test --no-build --verbosity normal --logger "trx;LogFileName=stage\test-results.trx"
- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: DotNET Tests
path: "**/test-results.trx"
reporter: dotnet-trx
fail-on-error: true

0 comments on commit eb38356

Please sign in to comment.