Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/jbgutierrez/path-parse/releases) - [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7) --- updated-dependencies: - dependency-name: path-parse dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|---|---|---|
| .github/workflows | ||
| custom_reports | ||
| dist | ||
| python | ||
| tests | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc.json | ||
| LICENSE | ||
| README.md | ||
| action.js | ||
| action.test.fixtures.js | ||
| action.test.js | ||
| action.yml | ||
| index.js | ||
| package-lock.json | ||
| package.json | ||
| screenshot.png | ||
| utils.js | ||
| utils.test.js | ||
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.
Inputs
report_paths
Optional. Glob expression to surefire or failsafe report paths. The default is **/surefire-reports/TEST-*.xml.
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.
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 }}.
Example usage
name: build
on:
pull_request:
jobs:
build:
name: Build and Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Build and Run Tests
run: mvn test --batch-mode --fail-at-end
- name: Publish Test Report
if: ${{ always() }}
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
}
}
