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