From 213144413f599a494e2395841f2acb5a73bad254 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sat, 17 Sep 2022 11:39:41 -0700 Subject: [PATCH] Test parallel operation in CI --- .circleci/config.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index ed06e55d..b5566ef2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,6 +47,18 @@ jobs: name: Run tests command: npm test + test_parallel: &test_parallel + parameters: + executor: + type: executor + executor: << parameters.executor >> + steps: + - attach_workspace: + at: . + - run: + name: Run tests in parallel + command: npx grunt execSpecsInParallel + test_browsers: &test_browsers executor: node16 steps: @@ -98,6 +110,16 @@ workflows: name: test_node_16 requires: - build_node_16 + - test_parallel: + executor: node16 + name: test_parallel_node_16 + requires: + - build_node_16 + - test_parallel: + executor: node18 + name: test_parallel_node_18 + requires: + - build_node_18 - test_browsers: requires: - build_node_16