@@ -68,6 +68,14 @@ executors:
68
68
# Command Definitions
69
69
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-commands
70
70
commands :
71
+ fail_fast :
72
+ steps :
73
+ - run :
74
+ name : ' Cancel workflow on fail'
75
+ when : on_fail
76
+ command : |
77
+ curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${CIRCLE_TOKEN}"
78
+
71
79
custom_attach_workspace :
72
80
description : Attach workspace at a predefined location
73
81
steps :
@@ -207,6 +215,7 @@ jobs:
207
215
command : |
208
216
mkdir /mnt/ramdisk/e2e-yarn
209
217
node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX} <<# parameters.snapshots >>--ng-snapshots<</ parameters.snapshots >> --yarn --tmpdir=/mnt/ramdisk/e2e-yarn --glob="{tests/basic/**,tests/update/**,tests/commands/add/**}"
218
+ - fail_fast
210
219
211
220
test-browsers :
212
221
executor :
@@ -232,6 +241,7 @@ jobs:
232
241
- run : node ./tests/legacy-cli/run_e2e ./tests/legacy-cli/e2e/tests/misc/browsers.ts --ve
233
242
- run : node ./tests/legacy-cli/run_e2e ./tests/legacy-cli/e2e/tests/misc/browsers.ts
234
243
- run : ./scripts/saucelabs/stop-tunnel.sh
244
+ - fail_fast
235
245
236
246
build :
237
247
executor : action-executor
@@ -250,6 +260,7 @@ jobs:
250
260
- run :
251
261
command : yarn bazel:test
252
262
no_output_timeout : 20m
263
+ - fail_fast
253
264
254
265
snapshot_publish :
255
266
executor : action-executor
@@ -267,6 +278,7 @@ jobs:
267
278
name : Deployment to Snapshot
268
279
command : |
269
280
yarn admin snapshots --verbose --githubTokenFile=${HOME}/github_token
281
+ - fail_fast
270
282
271
283
# Windows jobs
272
284
e2e-cli-win :
@@ -292,6 +304,7 @@ jobs:
292
304
} else {
293
305
node tests\legacy-cli\run_e2e.js --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX
294
306
}
307
+ - fail_fast
295
308
296
309
workflows :
297
310
version : 2
@@ -320,7 +333,7 @@ workflows:
320
333
name : e2e-cli-ng-snapshots
321
334
snapshots : true
322
335
requires :
323
- - e2e-cli
336
+ - build
324
337
filters :
325
338
branches :
326
339
only :
@@ -331,7 +344,7 @@ workflows:
331
344
nodeversion : ' 12.20'
332
345
<< : *only_release_branches
333
346
requires :
334
- - e2e-cli
347
+ - build
335
348
- test-browsers :
336
349
requires :
337
350
- build
@@ -347,7 +360,7 @@ workflows:
347
360
# Windows jobs
348
361
- e2e-cli-win :
349
362
requires :
350
- - test
363
+ - build
351
364
352
365
# Publish jobs
353
366
- snapshot_publish :
0 commit comments