Publish test results #234
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish test results | |
on: | |
workflow_run: | |
workflows: | |
- Continuous integration | |
types: | |
- completed | |
permissions: {} | |
jobs: | |
test-results: | |
name: Publish test results | |
runs-on: ubuntu-latest | |
if: github.event.workflow_run.conclusion != 'skipped' | |
permissions: | |
checks: write | |
pull-requests: write | |
contents: read | |
issues: read | |
actions: read | |
steps: | |
- name: Download and extract artifacts | |
uses: dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615 | |
with: | |
run_id: ${{ github.event.workflow_run.id }} | |
path: artifacts | |
- name: Publish test results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
with: | |
commit: ${{ github.event.workflow_run.head_sha }} | |
event_file: artifacts/Event file/event.json | |
event_name: ${{ github.event.workflow_run.event }} | |
files: "artifacts/**/*.xml" |