]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
ci: use maxWorkers=2 for jest
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 29 Aug 2019 09:19:01 +0000 (11:19 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 29 Aug 2019 09:19:03 +0000 (11:19 +0200)
It should avoid memory problems on CircleCI

circle.yml

index 4d6c70ee66428ddb5ed488b47ca4ecb38dd54aba..4dbb1ebacd8f28b88a00043cdaa2dc488737911d 100644 (file)
@@ -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