Skip to content

Commit 0f36563

Browse files
committed
ci: use CircleCI matrix support for E2E jobs
1 parent 206d62a commit 0f36563

File tree

1 file changed

+24
-34
lines changed

1 file changed

+24
-34
lines changed

.circleci/config.yml

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,18 @@ jobs:
179179

180180
e2e-cli:
181181
parameters:
182+
nodeversion:
183+
type: string
184+
default: *default_nodeversion
182185
ve:
183186
type: boolean
184187
default: false
185188
snapshots:
186189
type: boolean
187190
default: false
188-
executor: test-executor
191+
executor:
192+
name: test-executor
193+
nodeversion: << parameters.nodeversion >>
189194
parallelism: 6
190195
steps:
191196
- custom_attach_workspace
@@ -204,19 +209,6 @@ jobs:
204209
mkdir /mnt/ramdisk/e2e-yarn
205210
PATH=~/.npm-global/bin:$PATH node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX} <<# parameters.ve >>--ve<</ parameters.ve >> <<# parameters.snapshots >>--ng-snapshots<</ parameters.snapshots >> --yarn --tmpdir=/mnt/ramdisk/e2e-yarn --glob="{tests/basic/**,tests/update/**}"
206211
207-
e2e-cli-node-14:
208-
executor:
209-
name: test-executor
210-
nodeversion: "14.15"
211-
parallelism: 6
212-
steps:
213-
- custom_attach_workspace
214-
- browser-tools/install-chrome
215-
- run:
216-
name: Initialize Environment
217-
command: ./.circleci/env.sh
218-
- run: PATH=~/.npm-global/bin:$PATH node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX}
219-
220212
test-browsers:
221213
executor:
222214
name: test-executor
@@ -334,20 +326,27 @@ workflows:
334326
requires:
335327
- setup
336328
- e2e-cli:
329+
name: e2e-cli<<# matrix.ve >>-ve<</ matrix.ve >>
330+
matrix:
331+
alias: e2e-cli-renderers
332+
parameters:
333+
ve: [true, false]
337334
post-steps:
338-
- store_artifacts:
339-
path: /tmp/dist
340-
destination: cli/new-production
335+
- unless:
336+
condition: << matrix.ve >>
337+
steps:
338+
- store_artifacts:
339+
path: /tmp/dist
340+
destination: cli/new-production
341341
requires:
342342
- build
343343
- e2e-cli:
344-
name: e2e-cli-ve
345-
ve: true
346-
requires:
347-
- build
348-
- e2e-cli:
349-
name: e2e-cli-ng-snapshots
344+
name: e2e-cli-ng<<# matrix.ve >>-ve<</ matrix.ve >>-snapshots
350345
snapshots: true
346+
matrix:
347+
alias: e2e-cli-renderers-snapshots
348+
parameters:
349+
ve: [true, false]
351350
requires:
352351
- e2e-cli
353352
filters:
@@ -356,17 +355,8 @@ workflows:
356355
- renovate/angular
357356
- master
358357
- e2e-cli:
359-
name: e2e-cli-ng-ve-snapshots
360-
snapshots: true
361-
ve: true
362-
requires:
363-
- e2e-cli
364-
filters:
365-
branches:
366-
only:
367-
- renovate/angular
368-
- master
369-
- e2e-cli-node-14:
358+
name: e2e-cli-node-14
359+
nodeversion: "14.15"
370360
<<: *only_release_branches
371361
requires:
372362
- e2e-cli

0 commit comments

Comments
 (0)