]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
ci: fix coverage
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 2 Apr 2020 14:27:30 +0000 (16:27 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 1 May 2020 08:04:36 +0000 (10:04 +0200)
circle.yml

index 6e5398d0c6730b495b3b868b7da5e93e0e5213fd..de3025b84d7bbd3ad9b25775ff84a7fcca83ab82 100644 (file)
@@ -25,12 +25,6 @@ jobs:
           paths:
             - vue-router
 
-  save-cache:
-    <<: *defaults
-    steps:
-      - attach_workspace:
-          at: ~/project
-
   build-e2e:
     <<: *defaults
     steps:
@@ -48,14 +42,8 @@ jobs:
       - attach_workspace:
           at: ~/project
       - run: yarn test:unit  --maxWorkers=2
-      - run: yarn run codecov
       - store_artifacts:
           path: coverage
-      # Save cache after unit test is done. At this point e2e is still running
-      - save_cache:
-          key: v2-dependencies-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
-          paths:
-            - node_modules
 
   test-e2e:
     <<: *defaults
@@ -74,15 +62,26 @@ jobs:
       - run: yarn build
       - run: yarn build:dts
       - run: yarn run test:tsd
+      # Save cache after this task. At this point e2e are still running
+      - save_cache:
+          key: v2-dependencies-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
+          paths:
+            - node_modules
+
+  coverage:
+    <<: *defaults
+    steps:
+      - attach_workspace:
+          at: ~/project
+      - run:
+          name: Send code coverage
+          command: yarn run codecov
 
 workflows:
   version: 2
   install-and-parallel-test:
     jobs:
       - install
-      - build-lint:
-          requires:
-            - install
       - build-e2e:
           requires:
             - install
@@ -92,6 +91,9 @@ workflows:
       - test-e2e:
           requires:
             - build-e2e
-      - save-cache:
+      - build-lint:
+          requires:
+            - install
+      - coverage:
           requires:
             - test-unit