Go to file
dependabot[bot] 759d5a8357
chore(deps): bump @octokit/plugin-retry from 6.0.1 to 8.0.2
Bumps [@octokit/plugin-retry](https://github.com/octokit/plugin-retry.js) from 6.0.1 to 8.0.2.
- [Release notes](https://github.com/octokit/plugin-retry.js/releases)
- [Commits](https://github.com/octokit/plugin-retry.js/compare/v6.0.1...v8.0.2)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-retry"
  dependency-version: 8.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 10:01:45 +00:00
.github Bump actions/setup-java from 4 to 5 (#260) 2025-09-19 06:14:52 -03:00
dist Escape RegExp (#265) (#266) 2025-09-24 14:37:54 +02:00
integration-tests Bump org.apache.commons:commons-lang3 in /integration-tests/maven (#258) 2025-09-19 11:31:07 +02:00
.gitignore Support for junit xml / pytest (#7) 2020-07-09 22:27:15 +02:00
.npmrc chore: upgrade to node 20 (#185) 2024-02-21 11:22:35 +01:00
.prettierignore road to v1 2020-05-19 15:00:21 +02:00
.prettierrc.json road to v1 2020-05-19 15:00:21 +02:00
LICENSE road to v1 2020-05-19 15:00:21 +02:00
README.md feat: ignore flaky tests (#238) 2025-01-08 09:30:01 +01:00
action.js feat: ignore flaky tests (#238) 2025-01-08 09:30:01 +01:00
action.test.fixtures.js feat: ignore flaky tests (#238) 2025-01-08 09:30:01 +01:00
action.test.js feat: ignore flaky tests (#238) 2025-01-08 09:30:01 +01:00
action.yml feat: ignore flaky tests (#238) 2025-01-08 09:30:01 +01:00
eslint.config.js Bump eslint from 8.57.0 to 9.6.0 (#219) 2024-07-02 14:24:34 -03:00
index.js road to v1 2020-05-19 15:00:21 +02:00
package-lock.json chore(deps): bump @octokit/plugin-retry from 6.0.1 to 8.0.2 2025-10-01 10:01:45 +00:00
package.json chore(deps): bump @octokit/plugin-retry from 6.0.1 to 8.0.2 2025-10-01 10:01:45 +00:00
screenshot.png road to v1 2020-05-19 15:00:21 +02:00
utils.js Escape RegExp (#265) (#266) 2025-09-24 14:37:54 +02:00
utils.test.js GH-184: ignore incompatible XML reports (#198) 2024-01-15 14:59:51 +01:00

README.md

GitHub Action: Process maven surefire reports

This action processes maven surefire or failsafe XML reports on pull requests and shows the result as a PR check with summary and annotations.

Screenshot

Inputs

report_paths

Optional. Glob expression to surefire or failsafe report paths. The default is **/surefire-reports/TEST-*.xml.

create_check

Optional. Set to false to add annotations to the current job where this action is being executed. The default is true.

check_name

Optional. Check name to use when creating a check run. The default is Test Report.

commit

Optional. The commit sha to update the status. This is useful when you run it with workflow_run.

fail_on_test_failures

Optional. Check will fail if there are test failures. The default is false.

fail_if_no_tests

Optional. Check will fail if no tests were found. The default is true.

ignore_flaky_tests

Optional. Set to true to consider flaky tests as success. The default is false.

skip_publishing

Optional. Skip the test report publishing (check run creation). The default is false.

github_token

Optional. Usually in form of github_token: ${{ secrets.GITHUB_TOKEN }}. The default is ${{ github.token }}.

file_name_in_stack_trace

Optional. Set to true to get the file name from the stack trace. The default is false.

github_base_url

Optional: If you use GitHub Enterprise, you can set this to the URL of your server (e.g. https://github.myorg.com/api/v3).

Example usage

name: build
on:
  pull_request:

jobs:
  build:
    name: Build and Run Tests
    runs-on: ubuntu-latest
    # Permissions block is optional, useful for dependabot checks
    permissions:
      checks: write
      contents: read
    steps:
      - name: Checkout Code
        uses: actions/checkout@v4
      - name: Build and Run Tests
        run: mvn test --batch-mode --fail-at-end
      - name: Publish Test Report
        if: success() || failure()
        uses: scacap/action-surefire-report@v1

Tips for Gradle

As Gradle uses a different build directory than Maven by default, you might need to set the report_paths variable:

    report_paths: '**/build/test-results/test/TEST-*.xml'

You also need to enable JUnit XML reports as shown below.

test {
  reports {
    junitXml.enabled = true
  }
}