Skip to content

Publish reports

Publish reports #1477

name: Publish reports
on:
workflow_run:
workflows: [ "Java CI with Gradle" ]
types:
- completed
jobs:
publish:
name: Publish Test Report
runs-on: ubuntu-latest
steps:
- name: Download Reports
uses: actions/download-artifact@v4
with:
path: reports
pattern: '*-reports'
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{github.event.workflow_run.id}}
- name: Publish aggregated tests reports
uses: scacap/action-surefire-report@a2911bd1a4412ec18dde2d93b1758b3e56d2a880 #v1.8.0
with:
github_token: ${{secrets.GITHUB_TOKEN}}
report_paths: '${{github.workspace}}/reports/**/TEST-*.xml'
commit: ${{github.event.workflow_run.head_sha}}
check_name: Aggregated Test Report