@@ -25,6 +25,7 @@ parameters:
25
25
var_1 : &cache_key v1-angular_devkit-14.19-{{ checksum "yarn.lock" }}
26
26
var_1_win : &cache_key_win v1-angular_devkit-win-16.10-{{ checksum "yarn.lock" }}
27
27
var_3 : &default_nodeversion '14.19'
28
+ var_3_major : &default_nodeversion_major '14'
28
29
# Workspace initially persisted by the `setup` job, and then enhanced by `setup-and-build-win`.
29
30
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
30
31
# https://circleci.com/blog/deep-diving-into-circleci-workspaces/
@@ -39,6 +40,9 @@ var_5: &only_release_branches
39
40
40
41
var_6 : &all_e2e_subsets ['npm', 'esbuild', 'yarn']
41
42
43
+ # The major version of node toolchains. See tools/toolchain_info.bzl
44
+ var_7_major : &all_test_nodeversion_major ['14', '16']
45
+
42
46
# Executor Definitions
43
47
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-executors
44
48
executors :
@@ -291,16 +295,20 @@ jobs:
291
295
- custom_attach_workspace
292
296
- run : yarn bazel build //tests/legacy-cli/...
293
297
294
- test :
298
+ unit- test :
295
299
executor : test-executor
296
300
resource_class : xlarge
301
+ parameters :
302
+ nodeversion :
303
+ type : string
304
+ default : *default_nodeversion_major
297
305
steps :
298
306
- custom_attach_workspace
299
307
- browser-tools/install-chrome
300
308
- setup_bazel_rbe
301
309
- run : sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
302
310
- run :
303
- command : yarn bazel: test
311
+ command : yarn bazel test --test_tag_filters=node<< parameters.nodeversion >>,-node<< parameters.nodeversion >>-broken //packages/...
304
312
# This timeout provides time for the actual tests to timeout and report status
305
313
# instead of CircleCI stopping the job without test failure information.
306
314
no_output_timeout : 40m
@@ -429,7 +437,11 @@ workflows:
429
437
# These jobs only really depend on Setup, but the build job is very quick to run (~35s) and
430
438
# will catch any build errors before proceeding to the more lengthy and resource intensive
431
439
# Bazel jobs.
432
- - test :
440
+ - unit-test :
441
+ name : test-node<< matrix.nodeversion >>
442
+ matrix :
443
+ parameters :
444
+ nodeversion : *all_test_nodeversion_major
433
445
requires :
434
446
- build
435
447
0 commit comments