Skip to content

Publish test results #126

Publish test results

Publish test results #126

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"