@@ -63,6 +63,7 @@ aliases:
6363 - /blog.+/
6464
6565 test_template : &test_template
66+ parallelism : 4
6667 parameters :
6768 npm_rebuild :
6869 type : boolean
@@ -75,11 +76,16 @@ aliases:
7576 condition : << parameters.npm_rebuild >>
7677 steps :
7778 - run : npm rebuild
78- - run : yarn list react
79- - run : yarn why lmdb-store
8079 - run :
81- command : node --max-old-space-size=2048 ./node_modules/.bin/jest -w 1 --ci
80+ name : Step debug info
81+ command : |
82+ yarn list react
83+ yarn why lmdb-store
84+ - run :
85+ name : Run tests
86+ command : yarn jest --ci --runInBand $(yarn jest --listTests | sed 's/\/root\/project//g' | circleci tests split --split-by=timings)
8287 environment :
88+ NODE_OPTIONS : --max-old-space-size=2048
8389 GENERATE_JEST_REPORT : true
8490 JEST_JUNIT_OUTPUT_DIR : ./test-results/jest-node/
8591 JEST_JUNIT_OUTPUT_NAME : results.xml
@@ -193,7 +199,8 @@ jobs:
193199 - persist_to_workspace :
194200 root : ./
195201 paths :
196- - " *"
202+ - " packages/"
203+ - " node_modules/"
197204
198205 lint :
199206 executor : node
@@ -506,6 +513,7 @@ jobs:
506513 working_directory : ~/project/scripts/i18n
507514
508515 windows_unit_tests :
516+ parallelism : 4
509517 executor :
510518 name : win/default
511519 shell : powershell.exe
@@ -519,28 +527,30 @@ jobs:
519527 # keys:
520528 # - yarn-packages-v2-{{ checksum "yarn.lock" }}
521529 # - yarn-packages-v2-
530+
531+ - << : *attach_to_bootstrap
522532 - run :
523- name : Install node 12.13
533+ name : Install node 12.13 and yarn
524534 command : |
525535 nvm install 12.13.0
526536 nvm alias default 12.13.0
527537 nvm use 12.13.0
528538 choco install yarn
529539 - run :
530- name : Set yarn timeout
531- command : yarn config set network-timeout 300000
532- - run :
533- name : Install node modules
534- command : yarn --frozen-lockfile
535- # Caching is slow, so disabling
536- # - save_cache:
537- # paths:
538- # - C:\Users\circleci\AppData\Local\Yarn\Cache
539- # key: yarn-packages-v2-{{ checksum "yarn.lock" }}
540- - run : yarn npm-run-all -s check-versions "lerna-prepare --concurrency=4 --stream"
540+ name : Rebuild packages for windows
541+ command : |
542+ Remove-Item -Recurse -Force -Path "node_modules/sharp/"
543+ yarn
541544 - run :
542- name : " Run Tests"
543- command : yarn jest -w 1 --ci
545+ name : Run tests
546+ command : yarn jest --ci --runInBand ((yarn jest --listTests) | Foreach-Object {$_ -replace '.*\\packages', 'packages'} | Foreach-Object {$_ -replace '\\', '/'} | circleci tests split --split-by=timings)
547+ environment :
548+ NODE_OPTIONS : --max-old-space-size=2048
549+ GENERATE_JEST_REPORT : true
550+ JEST_JUNIT_OUTPUT_DIR : ./test-results/jest-node/
551+ JEST_JUNIT_OUTPUT_NAME : results.xml
552+ - store_test_results :
553+ path : ./test-results/jest-node/
544554
545555 bootstrap-with-experimental-react :
546556 executor : node
@@ -627,6 +637,7 @@ workflows:
627637 << : *ignore_docs
628638 requires :
629639 - lint
640+ - bootstrap
630641 - unit_tests_node12 :
631642 << : *ignore_docs
632643 requires :
0 commit comments