Skip to content

Commit f38b119

Browse files
committed
Testing parralelism
1 parent 2642eb2 commit f38b119

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.circleci/config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
version: 2
22
jobs:
33
build:
4-
working_directory: ~/repo
54
docker:
65
- image: cimg/node:lts-browsers
6+
resource_class: large
7+
parallelism: 5
8+
working_directory: ~/repo
79
steps:
810
- checkout
911
- restore_cache:
@@ -22,10 +24,10 @@ jobs:
2224
command: npm run release
2325
- run:
2426
name: Run unit tests
25-
command: npm run test:coverage
27+
command: npm run test --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL
2628
- run:
2729
name: Run e2e tests
28-
command: npm run test:e2e
30+
command: npm run test:e2e --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL
2931
- run:
3032
name: Submit to Codecov
3133
command: npm run codecov

0 commit comments

Comments
 (0)