From f38b1197065588c0aff533fc229d499daa9893a2 Mon Sep 17 00:00:00 2001 From: Ferdi Koomen Date: Sat, 29 Oct 2022 12:23:18 +0200 Subject: [PATCH] Testing parralelism --- .circleci/config.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b206f24c..43f92c7a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,9 +1,11 @@ version: 2 jobs: build: - working_directory: ~/repo docker: - image: cimg/node:lts-browsers + resource_class: large + parallelism: 5 + working_directory: ~/repo steps: - checkout - restore_cache: @@ -22,10 +24,10 @@ jobs: command: npm run release - run: name: Run unit tests - command: npm run test:coverage + command: npm run test --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL - run: name: Run e2e tests - command: npm run test:e2e + command: npm run test:e2e --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL - run: name: Submit to Codecov command: npm run codecov