@@ -66,14 +66,14 @@ jobs:
66
66
runs-on : ubuntu-20.04
67
67
timeout-minutes : 10
68
68
needs : setup
69
- if : ${{ needs .setup.outputs.RUN_SCRIPTS == 'true' }}
69
+ if : ${{ jobs .setup.outputs.RUN_SCRIPTS == 'true' }}
70
70
steps :
71
71
- uses : actions/checkout@v2
72
72
73
73
- name : Restore cache
74
74
uses : ./.github/actions/cache
75
75
with :
76
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
76
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
77
77
78
78
- name : Check script linting
79
79
run : yarn scripts:lint
@@ -88,16 +88,16 @@ jobs:
88
88
runs-on : ubuntu-20.04
89
89
timeout-minutes : 10
90
90
needs : setup
91
- if : ${{ needs .setup.outputs.RUN_SPECS == 'true' }}
91
+ if : ${{ jobs .setup.outputs.RUN_SPECS == 'true' }}
92
92
strategy :
93
- matrix : ${{ fromJSON(needs .setup.outputs.SPECS_MATRIX) }}
93
+ matrix : ${{ fromJSON(jobs .setup.outputs.SPECS_MATRIX) }}
94
94
steps :
95
95
- uses : actions/checkout@v2
96
96
97
97
- name : Restore cache
98
98
uses : ./.github/actions/cache
99
99
with :
100
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
100
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
101
101
102
102
- name : Cache '${{ matrix.client.name }}' bundled specs
103
103
id : cache
@@ -119,7 +119,7 @@ jobs:
119
119
timeout-minutes : 10
120
120
runs-on : ubuntu-20.04
121
121
needs : setup
122
- if : ${{ needs .setup.outputs.RUN_JS_COMMON == 'true' }}
122
+ if : ${{ jobs .setup.outputs.RUN_JS_COMMON == 'true' }}
123
123
strategy :
124
124
matrix :
125
125
client :
@@ -132,7 +132,7 @@ jobs:
132
132
- name : Restore cache
133
133
uses : ./.github/actions/cache
134
134
with :
135
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
135
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
136
136
137
137
- name : Cache '${{ matrix.client }}' client
138
138
id : cache
@@ -158,11 +158,11 @@ jobs:
158
158
- client_javascript_common
159
159
if : |
160
160
always() &&
161
- needs .setup.outputs.RUN_JS == 'true' &&
161
+ jobs .setup.outputs.RUN_JS == 'true' &&
162
162
!contains(needs.*.result, 'cancelled') &&
163
163
!contains(needs.*.result, 'failure')
164
164
strategy :
165
- matrix : ${{ fromJSON(needs .setup.outputs.JS_MATRIX) }}
165
+ matrix : ${{ fromJSON(jobs .setup.outputs.JS_MATRIX) }}
166
166
steps :
167
167
- uses : actions/checkout@v2
168
168
@@ -171,7 +171,7 @@ jobs:
171
171
with :
172
172
job : client
173
173
language : javascript
174
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
174
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
175
175
176
176
- name : Cache '${{ matrix.client.name }}' client
177
177
id : cache
@@ -210,11 +210,11 @@ jobs:
210
210
- specs
211
211
if : |
212
212
always() &&
213
- needs .setup.outputs.RUN_JAVA == 'true' &&
213
+ jobs .setup.outputs.RUN_JAVA == 'true' &&
214
214
!contains(needs.*.result, 'cancelled') &&
215
215
!contains(needs.*.result, 'failure')
216
216
strategy :
217
- matrix : ${{ fromJSON(needs .setup.outputs.JAVA_MATRIX) }}
217
+ matrix : ${{ fromJSON(jobs .setup.outputs.JAVA_MATRIX) }}
218
218
steps :
219
219
- uses : actions/checkout@v2
220
220
@@ -223,7 +223,7 @@ jobs:
223
223
with :
224
224
job : client
225
225
language : java
226
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
226
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
227
227
228
228
- name : Cache '${{ matrix.client.name }}' client
229
229
id : cache
@@ -260,11 +260,11 @@ jobs:
260
260
- specs
261
261
if : |
262
262
always() &&
263
- needs .setup.outputs.RUN_PHP == 'true' &&
263
+ jobs .setup.outputs.RUN_PHP == 'true' &&
264
264
!contains(needs.*.result, 'cancelled') &&
265
265
!contains(needs.*.result, 'failure')
266
266
strategy :
267
- matrix : ${{ fromJSON(needs .setup.outputs.PHP_MATRIX) }}
267
+ matrix : ${{ fromJSON(jobs .setup.outputs.PHP_MATRIX) }}
268
268
steps :
269
269
- uses : actions/checkout@v2
270
270
@@ -273,7 +273,7 @@ jobs:
273
273
with :
274
274
job : client
275
275
language : php
276
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
276
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
277
277
278
278
- name : Cache '${{ matrix.client.name }}' client
279
279
id : cache
@@ -308,7 +308,7 @@ jobs:
308
308
needs : client_javascript
309
309
if : |
310
310
always() &&
311
- needs .setup.outputs.RUN_JS_ALGOLIASEARCH == 'true' &&
311
+ jobs .setup.outputs.RUN_JS_ALGOLIASEARCH == 'true' &&
312
312
!contains(needs.*.result, 'cancelled') &&
313
313
!contains(needs.*.result, 'failure')
314
314
steps :
@@ -319,7 +319,7 @@ jobs:
319
319
with :
320
320
job : codegen
321
321
language : javascript
322
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
322
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
323
323
324
324
- name : Cache 'algoliasearch' client
325
325
id : cache
@@ -345,7 +345,7 @@ jobs:
345
345
needs : client_javascript
346
346
if : |
347
347
always() &&
348
- needs .setup.outputs.RUN_JS_TESTS == 'true' &&
348
+ jobs .setup.outputs.RUN_JS_TESTS == 'true' &&
349
349
!contains(needs.*.result, 'cancelled') &&
350
350
!contains(needs.*.result, 'failure')
351
351
steps :
@@ -355,7 +355,7 @@ jobs:
355
355
uses : ./.github/actions/cache
356
356
with :
357
357
job : cts
358
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
358
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
359
359
360
360
- name : Run client-common tests
361
361
run : yarn workspace @experimental-api-clients-automation/client-common test
@@ -369,7 +369,7 @@ jobs:
369
369
- client_php
370
370
if : |
371
371
always() &&
372
- needs .setup.outputs.RUN_CTS == 'true' &&
372
+ jobs .setup.outputs.RUN_CTS == 'true' &&
373
373
!contains(needs.*.result, 'cancelled') &&
374
374
!contains(needs.*.result, 'failure')
375
375
steps :
@@ -383,7 +383,7 @@ jobs:
383
383
uses : ./.github/actions/cache
384
384
with :
385
385
job : cts
386
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
386
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
387
387
388
388
- name : Push generated code to generated branch
389
389
id : pushGeneratedCode
@@ -417,7 +417,7 @@ jobs:
417
417
if : |
418
418
always() &&
419
419
github.ref == 'refs/heads/main' &&
420
- needs .setup.outputs.RUN_CODEGEN == 'true' &&
420
+ jobs .setup.outputs.RUN_CODEGEN == 'true' &&
421
421
needs.cts.result == 'success'
422
422
steps :
423
423
- uses : actions/checkout@v2
@@ -430,7 +430,7 @@ jobs:
430
430
uses : ./.github/actions/cache
431
431
with :
432
432
job : codegen
433
- cache_hash : ${{ needs .setup.outputs.CACHE_COMMON_HASH }}
433
+ cache_hash : ${{ jobs .setup.outputs.CACHE_COMMON_HASH }}
434
434
435
435
- name : Push generated code to main
436
436
id : pushGeneratedCode
0 commit comments