-
Notifications
You must be signed in to change notification settings - Fork 595
33 lines (31 loc) · 1.19 KB
/
publish-test-reports.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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