Skip to content

Commit

Permalink
Attempt to fix PR build for forked repo
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri committed Nov 16, 2023
1 parent c5bc9cc commit 825e92a
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,30 @@ jobs:
name: nuget
path: build

- name: Report tests
uses: dorny/test-reporter@v1
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
with:
name: Unit tests
name: TestResults
path: tests/Unit/TestResults/*.trx
reporter: dotnet-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

prerelease:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 825e92a

Please sign in to comment.