Test Report for Build #5: Fix issue with Actions v4 #5
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: Test Report | |
run-name: > | |
Test Report for ${{ github.event.workflow.name }} | |
#${{ github.event.workflow_run.run_number }}: | |
${{ github.event.workflow_run.display_title }} | |
on: | |
workflow_run: | |
workflows: [Build] | |
types: [completed] | |
permissions: | |
checks: write | |
#actions: read | |
jobs: | |
report: | |
name: Test Report | |
runs-on: ubuntu-latest | |
steps: | |
# We have to clone the repo as a workaround for https://github.com/dorny/test-reporter/issues/131 | |
- name: Fetch Sources | |
uses: actions/checkout@v4 | |
- name: Download Test Reports | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: test-results-* | |
run-id: ${{ github.event.workflow_run.id }} | |
#github-token: ${{ github.token }} | |
- name: Publish Test Reports as Annotations | |
uses: dorny/test-reporter@v1 | |
with: | |
name: "Unit Tests Report: Gradle" | |
path: "test-results-*/test-results/*/TEST-*.xml" | |
reporter: java-junit |