Add check runs to your CI with annotations listing the test failures.
- uses: turpif/junit-report-annotations-action@2.0.1
if: always()
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
Name | Description | Default value |
---|---|---|
access-token |
Mandatory Github token | You should set it to ${{ secrets.GITHUB_TOKEN }} |
path |
Glob to JUnit XML files | **/TEST-*.xml |
numFailures |
Max number of failed tests to include (-1 for no limit) | -1 (no limit) |
name |
Name of the Check in the GitHub Actions UI (if you use several times this action) | JUnit Report |
Actions in this repository demonstrate what this GitHub Action is doing.
A successful run will look like
A failed run will look like
Then you can click on the filename line (Check failure ... DummyTest.java
here), and you'll be
redirected to the test file with the annotation like