-
Notifications
You must be signed in to change notification settings - Fork 94
78 lines (78 loc) · 2.52 KB
/
test-report.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: 'Test Report'
on:
workflow_run:
workflows: ['CI']
types:
- completed
env:
CROSS_BUILD: ${{ github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/preview') || startsWith(github.ref, 'refs/heads/release') }}
jobs:
setup:
runs-on: ubuntu-latest
outputs:
scala_version_matrix: ${{ steps.variables.outputs.scala_version_matrix }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 100
- name: Define variables
id: variables
shell: bash
run: |
if [[ $CROSS_BUILD == 'true' ]]; then
echo "scala_version_matrix=[\"2.12\",\"2.13\"]" >> $GITHUB_OUTPUT
else
echo "scala_version_matrix=[\"2.13\"]" >> $GITHUB_OUTPUT
fi
report-be:
runs-on: ubuntu-latest
needs: [ setup ]
strategy:
matrix:
scalaVersion: ${{fromJson(needs.setup.outputs.scala_version_matrix)}}
steps:
- name: BackendTests Report
continue-on-error: true
uses: dorny/test-reporter@v1
with:
name: REPORT-BackendTests-${{ matrix.scalaVersion }}
artifact: BackendTests-results-${{ matrix.scalaVersion }}
path: '**/*.xml'
reporter: java-junit
# Limited because of GH actions maximum report size of 65535 bytes
list-suites: failed
- name: IntegrationTests Report
continue-on-error: true
uses: dorny/test-reporter@v1
with:
name: REPORT-IntegrationTests-${{ matrix.scalaVersion }}
artifact: IntegrationTests-results-${{ matrix.scalaVersion }}
path: '**/*.xml'
reporter: java-junit
- name: SlowTests Report
continue-on-error: true
uses: dorny/test-reporter@v1
with:
name: REPORT-SlowTests-${{ matrix.scalaVersion }}
artifact: SlowTests-results-${{ matrix.scalaVersion }}
path: '**/*.xml'
reporter: java-junit
report-fe:
runs-on: ubuntu-latest
steps:
- name: FrontendTests Report
continue-on-error: true
uses: dorny/test-reporter@v1
with:
name: REPORT-FrontendTests
artifact: FrontendTests-results
path: '**/*.xml'
reporter: jest-junit
- name: CypressTests Report
continue-on-error: true
uses: dorny/test-reporter@v1
with:
name: REPORT-CypressTests
artifact: CypressTests-results
path: '**/*.xml'
reporter: java-junit