Skip to content

Commit

Permalink
Fix issue with Actions v4
Browse files Browse the repository at this point in the history
  • Loading branch information
JojOatXGME committed May 3, 2024
1 parent 6095e1c commit a1713df
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

permissions:
checks: write
actions: read

jobs:
report:
Expand All @@ -18,10 +19,21 @@ jobs:

steps:

- name: Test Report
# We have to clone the repo as the test-reporter would run into an error otherwise.
# See https://github.com/dorny/test-reporter/issues/131#issuecomment-2093880211
- 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:
artifact: /test-results-([^-]*)-(.*)/
name: "Unit Tests Report: Gradle $1 @ $2"
path: "test-results/*/TEST-*.xml"
name: "Unit Tests Report: Gradle"
path: "test-results-*/test-results/*/TEST-*.xml"
reporter: java-junit

0 comments on commit a1713df

Please sign in to comment.