diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc176287..087d867d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: TestResults/*.trx + reporter: dotnet-trx prerelease: runs-on: ubuntu-latest