Skip to content

Add check runs to your CI with annotations listing the test failures

Notifications You must be signed in to change notification settings

TurpIF/junit-report-annotations-action

 
 

Repository files navigation

junit-report-annotations-action

Add check runs to your CI with annotations listing the test failures.

Setup

- uses: turpif/junit-report-annotations-action@2.0.1
  if: always()
  with:
    access-token: ${{ secrets.GITHUB_TOKEN }}

Parameters

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

Demonstration

Actions in this repository demonstrate what this GitHub Action is doing.

A successful run will look like

Pass

A failed run will look like

Fail

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

Diff view

About

Add check runs to your CI with annotations listing the test failures

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.3%
  • Java 0.7%