Publish Test Reports #821
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
name: 'Publish Test Reports' | |
on: | |
workflow_run: | |
workflows: ['Validate and test'] # runs after CI workflow | |
types: | |
- completed | |
permissions: | |
contents: read | |
# required to attach test details https://github.com/dorny/test-reporter/issues/149#issuecomment-1004820190 | |
checks: write | |
jobs: | |
publish-test-results: | |
name: "Publish details with dorny-test-reporter" | |
runs-on: ubuntu-22.04 | |
if: github.event.repository.fork == false | |
strategy: | |
fail-fast: false | |
matrix: | |
SCALA_VERSION: [ 2.13 ] | |
JDK_VERSION: ["1.11", "1.17"] | |
steps: | |
# https://github.com/dorny/test-reporter/releases/tag/v1.6.0 | |
- uses: dorny/test-reporter@c9b3d0e2bd2a4e96aaf424dbaa31c46b42318226 | |
# avoid excessive notification spam, fail-on-error seems broken https://github.com/dorny/test-reporter/issues/161 | |
continue-on-error: true | |
with: | |
artifact: 'test-results-${{ matrix.JDK_VERSION }}-${{ matrix.SCALA_VERSION }}' | |
name: 'Test Results Details / Scala ${{ matrix.SCALA_VERSION }} on JDK ${{ matrix.JDK_VERSION }}' | |
fail-on-error: false | |
path: '**/target/test-reports/*.xml' | |
reporter: java-junit |