File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -19,30 +19,30 @@ jobs:
1919 parameters :
2020 node-version :
2121 type : string
22- shard :
23- type : string
2422 working_directory : ~/jest
2523 executor : node/default
24+ parallelism : 4
2625 steps :
2726 - checkout
2827 - node/install :
2928 node-version : << parameters.node-version >>
3029 - node/install-packages : *install
3130 - run :
32- command : yarn test-ci-partial --shard=<< parameters.shard >>
31+ command : yarn test-ci-partial --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL
3332 - store_test_results :
3433 path : reports/junit
3534
3635 test-jest-jasmine :
3736 working_directory : ~/jest
3837 executor : node/default
38+ parallelism : 4
3939 steps :
4040 - checkout
4141 - node/install :
4242 node-version : lts/*
4343 - node/install-packages : *install
4444 - run :
45- command : JEST_JASMINE=1 yarn test-ci-partial && JEST_JASMINE=1 yarn test-leak
45+ command : JEST_JASMINE=1 yarn test-ci-partial && JEST_JASMINE=1 yarn test-leak --shard=$(expr $CIRCLE_NODE_INDEX + 1)/$CIRCLE_NODE_TOTAL
4646 - store_test_results :
4747 path : reports/junit
4848
@@ -51,9 +51,8 @@ workflows:
5151 build-and-deploy :
5252 jobs :
5353 - test-node :
54- name : test-node-partial-<< matrix.node-version >>-<< matrix.shard >>
54+ name : test-node-partial-<< matrix.node-version >>
5555 matrix :
5656 parameters :
5757 node-version : ['12', '14', '16', '17']
58- shard : ['1/3', '2/3', '3/3']
5958 - test-jest-jasmine
You can’t perform that action at this time.
0 commit comments