This action processes TestNG XML reports on pull requests and shows the result as a PR check with summary and annotations.
This action is a modified fork of ScaCap/action-surefire-report.
Required. Usually in form of github_token: ${{ secrets.GITHUB_TOKEN }}
.
Optional. Glob expression to TestNG report paths. The default is **/surefire-reports/testng-results.xml
.
Optional. Check name to use when creating a check run. The default is Test Report
.
Optional. The commit sha to update the status. This is useful when you run it with workflow_run
.
Optional. Defaults to true. Fail if there are none test results found.
Optional. Defaults to false. Show skipped tests count. t
Optional. Skip the test report publishing (check run creation). The default is false
.
Optional. Defaults to false. Instead of creating new check, update existing check check_name
.
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 -Dmaven.test.failure.ignore=true
- name: Publish Test Report
uses: starburstdata/action-testng-report@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}