Skip to content

Commit

Permalink
fix: github action test report on pull requests (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil authored Nov 20, 2023
1 parent 49b9d02 commit 9dac1d7
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,13 @@ jobs:
name: TestResults
path: tests/Unit/TestResults/*.trx

report:
needs: build
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest

steps:
- name: Download test results
uses: actions/download-artifact@v2
with:
name: TestResults

- name: Report tests
uses: dorny/test-reporter@v1
with:
name: Unit tests
path: TestResults/*.trx
reporter: dotnet-trx
- name: Report tests
if: ${{ ! (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) }}
uses: dorny/test-reporter@v1
with:
name: Unit tests
path: tests/Unit/TestResults/*.trx
reporter: dotnet-trx

prerelease:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9dac1d7

Please sign in to comment.