Skip to content

Commit 1f2b60d

Browse files
authored
fix(gradle-build-pr): deduplicate junit_files glob to avoid double-counted results (#7)
The previous junit_files config listed two overlapping globs: - artifacts/**/TEST-*.xml - artifacts/**/test-results/**/*.xml Both match the same Gradle JUnit reports (TEST-*.xml under test-results), so EnricoMi/publish-unit-test-result-action would parse each file twice and inflate the totals reported on PR comments and the check summary. Consolidate to the single canonical pattern artifacts/**/test-results/**/TEST-*.xml.
1 parent 168ca0a commit 1f2b60d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/gradle-build-pr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ jobs:
172172
uses: EnricoMi/publish-unit-test-result-action@v2
173173
if: always()
174174
with:
175-
junit_files: |
176-
artifacts/**/TEST-*.xml
177-
artifacts/**/test-results/**/*.xml
175+
junit_files: artifacts/**/test-results/**/TEST-*.xml
178176
check_name: "Test results"
179177
comment_mode: changes in failures
180178
report_individual_runs: true

0 commit comments

Comments
 (0)