-
Notifications
You must be signed in to change notification settings - Fork 301
120 lines (114 loc) · 3.61 KB
/
rpm-build-and-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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: 'RPM Build and Test Report'
on:
workflow_run:
workflows: ['RPM Build and Test']
types:
- completed
# for testing before landing
workflow_dispatch:
permissions:
contents: read
actions: read
checks: write
jobs:
report-vm-1:
runs-on: [self-hosted, docker]
strategy:
matrix:
# TODO: figure out how to determine this matrix
distro: ['el8', 'el9', 'leap15']
env:
STAGE_NAME:
steps:
- name: Set variables
run: |
case ${{ matrix.distro }} in
'el8')
DISTRO_NAME="EL"
DISTRO_VERSION="8"
;;
'el9')
DISTRO_NAME="EL"
DISTRO_VERSION="9"
;;
'leap15')
DISTRO_NAME="Leap"
DISTRO_VERSION="15.4"
;;
esac
echo "STAGE_NAME=Build RPM on $DISTRO_NAME $DISTRO_VERSION" >> $GITHUB_ENV
- name: Test Report
uses: phoenix-actions/test-reporting@v10
with:
artifact: ${{ env.STAGE_NAME }} test-results
name: ${{ env.STAGE_NAME }} Test Results (phoenix-actions)
path: ${{ env.STAGE_NAME }}/**/results.xml
reporter: java-junit # Format of test results
report-hw-1:
runs-on: [self-hosted, docker]
strategy:
matrix:
# TODO: figure out how to determine this matrix
stage: ['Large', 'Medium', 'Medium UCX Provider']
env:
STAGE_NAME:
steps:
- name: Set variables
run: echo "STAGE_NAME=Functional Hardware ${{ matrix.stage }}" >> $GITHUB_ENV
- name: Test Report
uses: phoenix-actions/test-reporting@v10
with:
artifact: ${{ env.STAGE_NAME }} test-results
name: ${{ env.STAGE_NAME }} Test Results (phoenix-actions)
path: ${{ env.STAGE_NAME }}/**/results.xml
reporter: java-junit # Format of test results
report2:
runs-on: [self-hosted, docker]
strategy:
matrix:
distro: ['el8', 'el9', 'leap15']
env:
STAGE_NAME:
steps:
- name: Set variables
run: |
case ${{ matrix.distro }} in
'el8')
DISTRO_NAME="EL"
DISTRO_VERSION="8"
;;
'el9')
DISTRO_NAME="EL"
DISTRO_VERSION="9"
;;
'leap15')
DISTRO_NAME="Leap"
DISTRO_VERSION="15.4"
;;
esac
echo "STAGE_NAME=Build RPM on $DISTRO_NAME $DISTRO_VERSION" >> $GITHUB_ENV
- name: Test Report
uses: dorny/test-reporter@v1
with:
artifact: ${{ env.STAGE_NAME }} test-results
name: ${{ env.STAGE_NAME }} Test Results (dorny)
path: ${{ env.STAGE_NAME }}/**/results.xml
reporter: jest-junit # Format of test results
report-hw-2:
runs-on: [self-hosted, docker]
strategy:
matrix:
# TODO: figure out how to determine this matrix
stage: ['Large', 'Medium', 'Medium UCX Provider']
env:
STAGE_NAME:
steps:
- name: Set variables
run: echo "STAGE_NAME=Functional Hardware ${{ matrix.stage }}" >> $GITHUB_ENV
- name: Test Report
uses: dorny/test-reporter@v1
with:
artifact: ${{ env.STAGE_NAME }} test-results
name: ${{ env.STAGE_NAME }} Test Results (dorny)
path: ${{ env.STAGE_NAME }}/**/results.xml
reporter: java-junit # Format of test results