Skip to content

Publish reports

Publish reports #1377

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@687f107f48aa55aff279cc5ce598fd9860871a81 #v1.7.3
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