-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathsmoke-tests-2_1_0-self-hosted.yml
More file actions
324 lines (310 loc) · 12.8 KB
/
smoke-tests-2_1_0-self-hosted.yml
File metadata and controls
324 lines (310 loc) · 12.8 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
name: Smoke Tests 2.1.0 [self-hosted]
# Do not edit - generated by `generateCIActions` Gradle task.
on:
schedule:
# Every Saturday at 12am EST
- cron: '0 5 * * SAT'
workflow_dispatch:
inputs:
suites:
type: string
required: false
default: 'acceptance,type-mapping,gradle,lib-0-499,lib-500-999,lib-1000-1499,lib-1500-1999,lib-2000-2499,lib-2500-2999,lib-3000-3499,lib-3500-3855'
description: |
Comma-separated test suites to run. Available: acceptance, type-mapping, gradle, lib-0-499, lib-500-999, lib-1000-1499, lib-1500-1999, lib-2000-2499, lib-2500-2999, lib-3000-3499, lib-3500-3855
Leave empty to run all. Use '!' prefix to exclude (e.g., '!lib-0-499').
compiler_version:
type: string
required: true
default: '2.1.0'
description:
'The Kotlin compiler version used by the tests.'
linkage:
type: choice
options:
- static
- dynamic
required: true
default: static
description:
'The linkage mode to use for the tests. "static" will produce static frameworks, "dynamic" will produce dynamic frameworks.'
configuration:
type: choice
options:
- debug
- release
required: true
default: debug
description:
'The configuration to use for the tests. "release" will produce release builds, "debug" will produce debug builds (type mapping tests currently always use release).'
target:
type: choice
options:
- ios_arm64
- ios_x64
- ios_simulator_arm64
- macos_arm64
- macos_x64
required: true
default: macos_arm64
description:
'The target to use for the type mapping tests.'
permissions:
contents: read
checks: write
jobs:
acceptance-tests:
name: Acceptance Tests 2.1.0[${{ inputs.compiler_version || '2.1.0' }}]
if: |-
(!inputs.suites || (contains(inputs.suites, 'acceptance') && !contains(inputs.suites, '!acceptance')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run Acceptance Tests
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: ":acceptance-tests:functional:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
gradle-tests:
name: Gradle Tests 2.1.0[${{ inputs.compiler_version || '2.1.0' }}]
if: |
(!inputs.suites || (contains(inputs.suites, 'gradle') && !contains(inputs.suites, '!gradle')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run Gradle Tests
uses: gradle/gradle-build-action@v2.4.2
id: run-tests
# TODO The targets cannot be selected at the moment due to a mismatch in the name used by Gradle and other kinds of tests
# "-Pmatrix.targets=${{ inputs.target || 'macosArm64' }}"
with:
arguments: >-
:test
-PtestLevel=smoke
-PtestType=gradle
"-Pmatrix.targets=macosArm64"
"-Pmatrix.configurations=${{ inputs.configuration || 'debug' }}"
"-Pmatrix.linkModes=${{ inputs.linkage || 'static' }}"
"-PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: test-runner
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: ${{ failure() || success() }}
with:
check_name: "Smoke Test Reports - Gradle Tests"
report_paths: 'test-runner/build/test-results/test/TEST-*.xml'
require_tests: true
type-mapping-tests:
name: Type Mapping Tests 2.1.0[${{ inputs.compiler_version || '2.1.0' }}]
if: |
(!inputs.suites || (contains(inputs.suites, 'type-mapping') && !contains(inputs.suites, '!type-mapping')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run Type Mapping Tests
uses: gradle/gradle-build-action@v2.4.2
id: run-tests
with:
arguments: ":acceptance-tests:type-mapping:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_TARGET: ${{ inputs.target }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
external-libraries-tests-0-499:
name: External Libraries Tests (2.1.0[${{ inputs.compiler_version || '2.1.0' }}]) 0-499
if: |
(!inputs.suites || (contains(inputs.suites, 'lib-0-499') && !contains(inputs.suites, '!lib-0-499')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run External Libraries Tests
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: ":acceptance-tests:libraries:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
onlyIndices: "0-499"
external-libraries-tests-500-999:
name: External Libraries Tests (2.1.0[${{ inputs.compiler_version || '2.1.0' }}]) 500-999
if: |
(!inputs.suites || (contains(inputs.suites, 'lib-500-999') && !contains(inputs.suites, '!lib-500-999')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run External Libraries Tests
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: ":acceptance-tests:libraries:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
onlyIndices: "500-999"
external-libraries-tests-1000-1499:
name: External Libraries Tests (2.1.0[${{ inputs.compiler_version || '2.1.0' }}]) 1000-1499
if: |
(!inputs.suites || (contains(inputs.suites, 'lib-1000-1499') && !contains(inputs.suites, '!lib-1000-1499')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run External Libraries Tests
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: ":acceptance-tests:libraries:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
onlyIndices: "1000-1499"
external-libraries-tests-1500-1999:
name: External Libraries Tests (2.1.0[${{ inputs.compiler_version || '2.1.0' }}]) 1500-1999
if: |
(!inputs.suites || (contains(inputs.suites, 'lib-1500-1999') && !contains(inputs.suites, '!lib-1500-1999')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run External Libraries Tests
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: ":acceptance-tests:libraries:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
onlyIndices: "1500-1999"
external-libraries-tests-2000-2499:
name: External Libraries Tests (2.1.0[${{ inputs.compiler_version || '2.1.0' }}]) 2000-2499
if: |
(!inputs.suites || (contains(inputs.suites, 'lib-2000-2499') && !contains(inputs.suites, '!lib-2000-2499')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run External Libraries Tests
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: ":acceptance-tests:libraries:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
onlyIndices: "2000-2499"
external-libraries-tests-2500-2999:
name: External Libraries Tests (2.1.0[${{ inputs.compiler_version || '2.1.0' }}]) 2500-2999
if: |
(!inputs.suites || (contains(inputs.suites, 'lib-2500-2999') && !contains(inputs.suites, '!lib-2500-2999')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run External Libraries Tests
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: ":acceptance-tests:libraries:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
onlyIndices: "2500-2999"
external-libraries-tests-3000-3499:
name: External Libraries Tests (2.1.0[${{ inputs.compiler_version || '2.1.0' }}]) 3000-3499
if: |
(!inputs.suites || (contains(inputs.suites, 'lib-3000-3499') && !contains(inputs.suites, '!lib-3000-3499')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run External Libraries Tests
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: ":acceptance-tests:libraries:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
onlyIndices: "3000-3499"
external-libraries-tests-3500-3855:
name: External Libraries Tests (2.1.0[${{ inputs.compiler_version || '2.1.0' }}]) 3500-3855
if: |
(!inputs.suites || (contains(inputs.suites, 'lib-3500-3855') && !contains(inputs.suites, '!lib-3500-3855')))
runs-on: self-hosted
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
- name: Prepare Worker
uses: ./.github/actions/prepare-worker
- name: Run External Libraries Tests
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: ":acceptance-tests:libraries:test -PversionSupport.kotlin.enabledVersions=2.1.0[${{ inputs.compiler_version || '2.1.0' }}]"
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
onlyIndices: "3500-3855"