mikepenz/action-junit-report "No test report files were found"
action-junit-report parses JUnit XML produced by your test runner. If tests did not emit reports, the path glob is wrong, or tests were skipped, there is nothing to parse.
What this error means
The junit-report step fails or warns with "No test report files were found" matching the report_paths glob.
github-actions
Error: No test report files were found matching: '**/junit.xml'
##[error]No test report files were foundCommon causes
Report path glob wrong
report_paths does not match where the runner wrote the XML.
Tests produced no reports
Tests failed to start or the reporter was not enabled, so no XML exists.
How to fix it
Emit JUnit XML and match the glob
- Configure the test runner to write JUnit XML to a known path.
- Set report_paths to that exact glob.
- Run the report step with if: always() so it runs even when tests fail.
.github/workflows/test.yml
- run: npm test -- --reporters=jest-junit
- if: ${{ always() }}
uses: mikepenz/action-junit-report@v5
with:
report_paths: 'junit.xml'How to prevent it
- Confirm the test runner writes JUnit XML and point report_paths at it.
- Use if: always() so reporting runs on test failures too.
Frequently asked questions
What causes ""No test report files were found""?
report_paths does not match where the runner wrote the XML.
How do I fix "No test report files were found"?
Emit JUnit XML and match the glob
Related guides
reviewdog reports no findings but the step exits 1Fix reviewdog failing the job with exit 1 despite reporting no findings, caused by reporter/level/fail-level…
cypress-io/github-action "Cypress could not verify that this server is running"/binary verify failedFix cypress-io/github-action failing to verify the Cypress binary, often a transient download/cache issue.
treosh/lighthouse-ci-action assertion failed (budget exceeded)Understand treosh/lighthouse-ci-action failing the job when a Lighthouse assertion/budget is not met.