diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90a232a7ee38..89c6501a2ee8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,6 +94,7 @@ jobs: isaacsim-version: ${{ env.ISAACSIM_BASE_VERSION }} - name: Run General Tests + id: run-general-tests uses: ./.github/actions/run-tests with: test-path: "tools" @@ -120,6 +121,12 @@ jobs: retention-days: 1 compression-level: 9 + - name: Fail on Test Failure for Fork PRs + if: github.event.pull_request.head.repo.full_name != github.repository && steps.run-general-tests.outcome == 'failure' + run: | + echo "Tests failed for PR from fork. The test report is in the logs. Failing the job." + exit 1 + combine-results: needs: [test-isaaclab-tasks, test-general] runs-on: [self-hosted, gpu] @@ -166,6 +173,7 @@ jobs: - name: Comment on Test Results id: test-reporter + if: github.event.pull_request.head.repo.full_name == github.repository uses: EnricoMi/publish-unit-test-result-action@v2 with: files: "reports/combined-results.xml" @@ -179,6 +187,7 @@ jobs: action_fail_on_inconclusive: true - name: Report Test Results + if: github.event.pull_request.head.repo.full_name == github.repository uses: dorny/test-reporter@v1 with: name: IsaacLab Build and Test Results