@@ -25,6 +25,7 @@ parameters:
2525var_1 : &cache_key v1-angular_devkit-14.19-{{ checksum "yarn.lock" }}
2626var_1_win : &cache_key_win v1-angular_devkit-win-16.10-{{ checksum "yarn.lock" }}
2727var_3 : &default_nodeversion '14.19'
28+ var_3_major : &default_nodeversion_major '14'
2829# Workspace initially persisted by the `setup` job, and then enhanced by `setup-and-build-win`.
2930# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
3031# https://circleci.com/blog/deep-diving-into-circleci-workspaces/
@@ -39,6 +40,9 @@ var_5: &only_release_branches
3940
4041var_6 : &all_e2e_subsets ['npm', 'esbuild', 'yarn']
4142
43+ # The major version of node toolchains. See tools/toolchain_info.bzl
44+ var_7_major : &all_test_nodeversion_major ['14', '16']
45+
4246# Executor Definitions
4347# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-executors
4448executors :
@@ -291,16 +295,20 @@ jobs:
291295 - custom_attach_workspace
292296 - run : yarn bazel build //tests/legacy-cli/...
293297
294- test :
298+ unit- test :
295299 executor : test-executor
296300 resource_class : xlarge
301+ parameters :
302+ nodeversion :
303+ type : string
304+ default : *default_nodeversion_major
297305 steps :
298306 - custom_attach_workspace
299307 - browser-tools/install-chrome
300308 - setup_bazel_rbe
301309 - run : sudo cp .circleci/bazel.rc /etc/bazel.bazelrc
302310 - run :
303- command : yarn bazel: test
311+ command : yarn bazel test --test_tag_filters=node<< parameters.nodeversion >>,-node<< parameters.nodeversion >>-broken //packages/...
304312 # This timeout provides time for the actual tests to timeout and report status
305313 # instead of CircleCI stopping the job without test failure information.
306314 no_output_timeout : 40m
@@ -429,7 +437,11 @@ workflows:
429437 # These jobs only really depend on Setup, but the build job is very quick to run (~35s) and
430438 # will catch any build errors before proceeding to the more lengthy and resource intensive
431439 # Bazel jobs.
432- - test :
440+ - unit-test :
441+ name : test-node<< matrix.nodeversion >>
442+ matrix :
443+ parameters :
444+ nodeversion : *all_test_nodeversion_major
433445 requires :
434446 - build
435447
0 commit comments