Browse Source

Fix not reporting test results on push to main (#921)

Allow other events to report test results
pull/923/head
Thomas Rittson 4 weeks ago committed by GitHub
parent
commit
6abfdd8a88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/integration-test.yml
  2. 4
      .github/workflows/test.yml

4
.github/workflows/integration-test.yml

@ -130,7 +130,9 @@ jobs: @@ -130,7 +130,9 @@ jobs:
- name: Report test results
id: report
uses: dorny/test-reporter@dc3a92680fcc15842eef52e8c4606ea7ce6bd3f3 # v2.1.1
if: github.event.pull_request.head.repo.full_name == github.repository && !cancelled()
# This will skip the job if it's a pull request from a fork, because that won't have permission to upload test results.
# PRs from the repository and all other events are OK.
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository) && !cancelled()
with:
name: Test Results
path: "junit.xml*"

4
.github/workflows/test.yml

@ -54,7 +54,9 @@ jobs: @@ -54,7 +54,9 @@ jobs:
- name: Report test results
uses: dorny/test-reporter@dc3a92680fcc15842eef52e8c4606ea7ce6bd3f3 # v2.1.1
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && !cancelled() }}
# This will skip the job if it's a pull request from a fork, because that won't have permission to upload test results.
# PRs from the repository and all other events are OK.
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository) && !cancelled()
with:
name: Test Results
path: "junit.xml"

Loading…
Cancel
Save