Skip to content

Test report

Test report #64

Workflow file for this run

name: Test report
on:
# Reports must run with write permissions that PRs from forks cannot grant,
# so they are published from a separate workflow_run-triggered workflow. The
# job only downloads artifacts and posts reports; it never runs PR code.
workflow_run: # zizmor: ignore[dangerous-triggers]
workflows:
- PR
- Merge to master
types:
- completed
permissions:
contents: read
actions: read
checks: write
pull-requests: write
jobs:
report:
if: ${{ github.event.workflow_run.conclusion != 'cancelled' }}
runs-on: ubuntu-latest
steps:
- name: Download test report artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
with:
pattern: '*test-reports'
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
- name: Publish test report
uses: mikepenz/action-junit-report@d9f48fc87bc235f7e214acf696ca5abc0a986f16
with:
report_paths: '**/TEST-*.xml'
commit: ${{ github.event.workflow_run.head_sha }}