Skip to content

Commit a237183

Browse files
committed
Added test reporting for PRs from forks
1 parent 5f71ff4 commit a237183

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ jobs:
167167
- name: Comment on Test Results
168168
id: test-reporter
169169
uses: EnricoMi/publish-unit-test-result-action@v2
170+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
170171
with:
171172
files: "reports/combined-results.xml"
172173
check_name: "Tests Summary"
@@ -180,6 +181,7 @@ jobs:
180181

181182
- name: Report Test Results
182183
uses: dorny/test-reporter@v1
184+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
183185
with:
184186
name: IsaacLab Build and Test Results
185187
path: reports/combined-results.xml
@@ -188,3 +190,14 @@ jobs:
188190
only-summary: false
189191
max-annotations: '50'
190192
report-title: "IsaacLab Test Results - ${{ github.workflow }}"
193+
194+
- name: Report Test Results (Fork PRs)
195+
uses: dorny/test-reporter@v1
196+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
197+
with:
198+
name: IsaacLab Build and Test Results (Fork)
199+
path: reports/combined-results.xml
200+
reporter: java-junit
201+
fail-on-error: false
202+
only-summary: true
203+
report-title: "IsaacLab Test Results (Fork PR) - ${{ github.workflow }}"

0 commit comments

Comments
 (0)