Upload and use event file, too, for test runs
To support forked repos: https://github.com/marketplace/actions/publish-test-results#support-fork-repositories-and-dependabot-branches **NOTE:** Do _not_ use with `pull_request_target` as that causes issues!
This commit is contained in:
parent
00fca44986
commit
93f59d6456
1 changed files with 14 additions and 1 deletions
15
.github/workflows/tests.yml
vendored
15
.github/workflows/tests.yml
vendored
|
@ -139,7 +139,17 @@ jobs:
|
|||
with:
|
||||
name: Test Results (Mocha)
|
||||
path: js/mocha-results.xml
|
||||
|
||||
|
||||
event_file:
|
||||
name: "Event File"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Event File
|
||||
path: ${{ github.event_path }}
|
||||
|
||||
publish-test-results:
|
||||
name: "Publish Tests Results"
|
||||
needs: ['PHPunit', 'Mocha']
|
||||
|
@ -160,6 +170,9 @@ jobs:
|
|||
uses: EnricoMi/publish-unit-test-result-action@v2
|
||||
with:
|
||||
check_name: "Test Results (${{ github.event.workflow_run.event || github.event_name }})"
|
||||
commit: ${{ github.event.workflow_run.head_sha }}
|
||||
event_file: artifacts/Event File/event.json
|
||||
event_name: ${{ github.event.workflow_run.event }}
|
||||
files: |
|
||||
artifacts/**/*.xml
|
||||
artifacts/**/*.trx
|
||||
|
|
Loading…
Reference in a new issue