File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 83
83
run : yarn
84
84
- name : build
85
85
run : yarn build:js
86
+ - name : Get number of CPU cores
87
+ id : cpu-cores
88
+ uses : SimenB/github-actions-cpu-cores@v1
86
89
- name : run tests
87
- run : yarn test-ci-partial
90
+ run : yarn test-ci-partial:parallel --max-workers ${{ steps.cpu-cores.outputs.count }}
88
91
env :
89
92
CI : true
Original file line number Diff line number Diff line change 98
98
"publish" : " yarn build-clean && yarn build && lerna publish --silent" ,
99
99
"test-types" : " yarn jest --config jest.config.types.js" ,
100
100
"test-ci" : " yarn jest-coverage --color -i --config jest.config.ci.js && yarn test-leak && node ./scripts/mapCoverage.js && codecov" ,
101
- "test-ci-partial" : " yarn jest --color -i --config jest.config.ci.js" ,
101
+ "test-ci-partial" : " yarn test-ci-partial:parallel -i" ,
102
+ "test-ci-partial:parallel" : " yarn jest --color --config jest.config.ci.js" ,
102
103
"test-pretty-format-perf" : " node packages/pretty-format/perf/test.js" ,
103
104
"test-leak" : " yarn jest -i --detectLeaks jest-mock jest-diff jest-repl pretty-format" ,
104
105
"test" : " yarn lint && yarn jest" ,
You can’t perform that action at this time.
0 commit comments