test-reporter #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
## Workflow to process the JUnit test results and add a report to the checks. | |
name: test-reporter | |
on: | |
workflow_run: | |
workflows: [ci] | |
types: [completed] | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
report: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: elastic/oblt-actions/test-report@v1 | |
with: | |
artifact: /test-results(.*)/ # artifact name | |
name: 'Test Report $1' # Name of the check run which will be created | |
path: "**/*.xml" # Path to test results (inside artifact .zip) | |
reporter: java-junit # Format of test results |