From 2d047b80bcd4516c7a0916d38f499b71fdccbe60 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 29 Aug 2019 11:19:01 +0200 Subject: [PATCH] ci: use maxWorkers=2 for jest It should avoid memory problems on CircleCI --- circle.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/circle.yml b/circle.yml index 4d6c70ee..4dbb1eba 100644 --- a/circle.yml +++ b/circle.yml @@ -4,7 +4,6 @@ # version: 2 - jobs: build: docker: @@ -15,12 +14,11 @@ jobs: 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 @@ -29,8 +27,10 @@ jobs: - 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 -- 2.39.5