Testing parralelism

This commit is contained in:
Ferdi Koomen 2022-10-29 12:23:18 +02:00
parent 2642eb2cf8
commit f38b119706

View File

@ -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