From ec062418923ff57523856a37a8ad78e97123bc05 Mon Sep 17 00:00:00 2001 From: Mario Nebl Date: Fri, 4 Mar 2022 22:22:00 +1100 Subject: [PATCH] ci: simplify circleci config --- .circleci/config.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a17f143542c1..5acda91ebbee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,30 +19,30 @@ jobs: parameters: node-version: type: string - shard: - type: string working_directory: ~/jest executor: node/default + parallelism: 4 steps: - checkout - node/install: node-version: << parameters.node-version >> - node/install-packages: *install - run: - command: yarn test-ci-partial --shard=<< parameters.shard >> + command: yarn test-ci-partial --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL - store_test_results: path: reports/junit test-jest-jasmine: working_directory: ~/jest executor: node/default + parallelism: 4 steps: - checkout - node/install: node-version: lts/* - node/install-packages: *install - run: - command: JEST_JASMINE=1 yarn test-ci-partial && JEST_JASMINE=1 yarn test-leak + command: JEST_JASMINE=1 yarn test-ci-partial && JEST_JASMINE=1 yarn test-leak --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL - store_test_results: path: reports/junit @@ -55,5 +55,4 @@ workflows: matrix: parameters: node-version: ['12', '14', '16', '17'] - shard: ['1/3', '2/3', '3/3'] - test-jest-jasmine \ No newline at end of file