-
Notifications
You must be signed in to change notification settings - Fork 55
179 lines (161 loc) · 5 KB
/
ci.yml
File metadata and controls
179 lines (161 loc) · 5 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
name: CI
on:
push:
branches:
- main
- '2.[4-9].x'
- '2.[1-9][0-9].x'
pull_request:
branches:
- main
- '2.[4-9].x'
- '2.[1-9][0-9].x'
workflow_call:
inputs:
operand:
description: 'The FQN of the Operand image to be used. If left blank the latest snapshot will be used.'
required: false
type: string
operandArtifact:
description: 'The name of the GH artifact containing the Operand image'
required: false
type: string
operandVersion:
description: 'The upstream version of the Operand image'
required: false
type: string
skipList:
description: 'A CSV of Operand versions to be skipped when executing TestOperandUpgrades'
required: false
type: string
ref:
type: string
required: false
repository:
type: string
required: false
workflow_dispatch:
jobs:
unit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
- name: Install Dependencies
uses: ./.github/actions/dependencies
- name: Lint
run: make lint
- name: Unit Test
run: make test
- name: Check for unstaged changes
run: git diff --name-only --exit-code
# Retrieve and cache all images so that they will be available for all subsequent jobs
images:
needs: unit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
- name: Cache Operand Images
uses: ./.github/actions/operand-cache
with:
populate: 'true'
operand: ${{ inputs.operand }}
- name: Inject custom Operand
uses: ./.github/actions/custom-operand
if: ${{ inputs.operand != '' }}
with:
operand: ${{ inputs.operand }}
operandArtifact: ${{ inputs.operandArtifact }}
operandVersion: ${{ inputs.operandVersion }}
infinispan:
needs: images
uses: ./.github/workflows/test_without_olm.yml
with:
args: 'infinispan-test PARALLEL_COUNT=3'
artifactPrefix: 'infinispan'
operand: ${{ inputs.operand }}
operandArtifact: ${{ inputs.operandArtifact }}
operandVersion: ${{ inputs.operandVersion }}
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
cache:
needs: images
uses: ./.github/workflows/test_without_olm.yml
with:
args: 'cache-test PARALLEL_COUNT=3'
artifactPrefix: 'cache'
operand: ${{ inputs.operand }}
operandArtifact: ${{ inputs.operandArtifact }}
operandVersion: ${{ inputs.operandVersion }}
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
batch:
needs: images
uses: ./.github/workflows/test_without_olm.yml
with:
args: 'batch-test PARALLEL_COUNT=3'
artifactPrefix: 'batch'
operand: ${{ inputs.operand }}
operandArtifact: ${{ inputs.operandArtifact }}
operandVersion: ${{ inputs.operandVersion }}
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
multinamespace:
# If custom operand is defined, skip the tests as irellevant
if: ${{ inputs.operand == '' }}
needs: images
uses: ./.github/workflows/test_without_olm.yml
with:
args: 'multinamespace-test'
artifactPrefix: 'multinamespace'
backup-restore:
needs: images
uses: ./.github/workflows/test_without_olm.yml
with:
args: 'backuprestore-test'
artifactPrefix: 'backup-restore'
operand: ${{ inputs.operand }}
operandArtifact: ${{ inputs.operandArtifact }}
operandVersion: ${{ inputs.operandVersion }}
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
webhook:
# If custom operand is defined, skip the tests as irellevant
if: ${{ inputs.operand == '' }}
needs: images
uses: ./.github/workflows/test_webhooks.yml
upgrades:
needs: images
uses: ./.github/workflows/test_upgrades.yml
with:
operand: ${{ inputs.operand }}
operandArtifact: ${{ inputs.operandArtifact }}
operandVersion: ${{ inputs.operandVersion }}
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
skipList: ${{ inputs.skipList }}
hr-rolling-upgrades:
needs: images
uses: ./.github/workflows/test_hr_rolling_upgrades.yml
with:
operand: ${{ inputs.operand }}
operandArtifact: ${{ inputs.operandArtifact }}
operandVersion: ${{ inputs.operandVersion }}
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}
xsite:
needs: images
uses: ./.github/workflows/test_xsite.yml
with:
operand: ${{ inputs.operand }}
operandArtifact: ${{ inputs.operandArtifact }}
operandVersion: ${{ inputs.operandVersion }}
ref: ${{ inputs.ref }}
repository: ${{ inputs.repository }}