Skip to content

Commit

Permalink
chore: add test report steps
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanho committed Sep 14, 2023
1 parent 1f7a908 commit 0ee5af4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ jobs:
path: "./**/TestResults/TestResults-${{ matrix.dotnet-version }}.trx"
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

report:
runs-on: ubuntu-latest
needs: [test]
strategy:
matrix:
dotnet-version: ["3.1.x", "6.0.x"]
steps:
- uses: dorny/test-reporter@v1
with:
artifact: dotnet-results-${{ matrix.dotnet-version }}
name: Tests
path: '*.trx'
reporter: dotnet-trx

test-pack:
runs-on: ubuntu-latest
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ jobs:
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

report:
runs-on: ubuntu-latest
needs: [test]
strategy:
matrix:
dotnet-version: ["3.1.x", "6.0.x"]
steps:
- uses: dorny/test-reporter@v1
with:
artifact: dotnet-results-${{ matrix.dotnet-version }}
name: Tests
path: '*.trx'
reporter: dotnet-trx

test-pack:
runs-on: ubuntu-latest
needs: [test]
Expand Down

0 comments on commit 0ee5af4

Please sign in to comment.