Publish Test Results #18
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
# Per the advice from: | |
# - https://octopus.com/blog/githubactions-running-unit-tests | |
# - https://github.com/marketplace/actions/test-reporter | |
name: Publish Test Results | |
on: | |
workflow_run: | |
workflows: ['Run Tests'] | |
types: | |
- completed | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Post test report | |
uses: dorny/test-reporter@v1 | |
if: always() | |
with: | |
artifact: test-results | |
name: Test Results | |
path: '**/build/test-results/test*/TESTS-TestSuites.xml' | |
reporter: java-junit | |
fail-on-error: true |