diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46727b7..371c0a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,11 @@ variables: default: image: docker.io/library/node:${NODE_VERSION}-${BASE_LAYER} + cache: + key: "${CI_COMMIT_REF_SLUG}" + paths: + - node_modules/ + policy: pull-push # --------- INSTALLING --------- # install: @@ -22,10 +27,16 @@ install: - install script: - npm ci + artifacts: + paths: + - node_modules/ + expire_in: 1h # ---------- LINTING ---------- # lint: stage: lint + needs: + - install tags: - lint script: @@ -34,6 +45,8 @@ lint: # ---------- TESTING ---------- # test: stage: test + needs: + - install tags: - test script: