From: Eduardo San Martin Morote Date: Thu, 29 Aug 2019 09:19:01 +0000 (+0200) Subject: ci: use maxWorkers=2 for jest X-Git-Tag: v4.0.0-alpha.0~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d047b80bcd4516c7a0916d38f499b71fdccbe60;p=thirdparty%2Fvuejs%2Frouter.git ci: use maxWorkers=2 for jest It should avoid memory problems on CircleCI --- 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