It should avoid memory problems on CircleCI
#
version: 2
-
jobs:
build:
docker:
steps:
- checkout
- # Download and cache dependencies
- restore_cache:
keys:
- - dependencies-cache-{{ checksum "yarn.lock" }}
- # fallback to using the latest cache if no exact match is found
- - dependencies-cache-
+ - dependencies-cache-{{ checksum "yarn.lock" }}
+ # fallback to using the latest cache if no exact match is found
+ - dependencies-cache-
- run: yarn install
- node_modules
key: dependencies-cache-{{ checksum "yarn.lock" }}
- # run tests!
- - run: yarn run test
+ - run:
+ - yarn run test:types
+ - yarn run test:unit --maxWorkers=2
+ - yarn build
- run:
name: Send code coverage