]> git.r.bdr.sh - rbdr/cologne/commitdiff
Move the cache to the global scope
authorRuben Beltran del Rio <redacted>
Mon, 21 Sep 2020 11:58:37 +0000 (13:58 +0200)
committerRuben Beltran del Rio <redacted>
Mon, 21 Sep 2020 11:58:37 +0000 (13:58 +0200)
.gitlab-ci.yml

index b64361cd24d4883153764c46ee75cc23a847e1af..77acffdbb6e42d7cf2b1234864eeba5660e0c9e3 100644 (file)
@@ -18,6 +18,12 @@ stages:
 before_script:
     - npm install
 
 before_script:
     - npm install
 
+cache:
+  key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
+  paths:
+    - node_modules/
+    - .nyc_output/
+
 lint:
   <<: *only-default
   stage: lint
 lint:
   <<: *only-default
   stage: lint
@@ -27,9 +33,6 @@ lint:
 test:
   <<: *only-default
   stage: test
 test:
   <<: *only-default
   stage: test
-  cache:
-    paths:
-      - .nyc_output/
   script:
     - npm test
 
   script:
     - npm test