diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e660414..3ef5efa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,14 @@ stages: - build - test +cache: + key: + files: + - package-lock.json + paths: + - node_modules + policy: pull + image: node:15-alpine3.10 variables: @@ -16,15 +24,7 @@ install_dependencies: tags: - docker script: - - npm install -g @angular/cli - npm install - cache: - key: - files: - - package-lock.json - paths: - - node_modules - policy: pull only: refs: - merge_requests @@ -47,13 +47,6 @@ build: expire_in: 1 days paths: - $APP_OUTPUT_PATH - cache: - key: - files: - - package-lock.json - paths: - - node_modules - policy: pull test:karma: stage: test @@ -75,13 +68,6 @@ test:karma: - $OUTPUT_PATH/coverage/cobetura-coverage.xml paths: - coverage/ - cache: - key: - files: - - package-lock.json - paths: - - node_modules - policy: pull test:e2e: stage: test @@ -90,13 +76,6 @@ test:e2e: - docker script: - npm ng e2e - cache: - key: - files: - - package-lock.json - paths: - - node_modules - policy: pull test:nglint: stage: test @@ -104,10 +83,3 @@ test:nglint: - docker script: - npm ng lint - cache: - key: - files: - - package-lock.json - paths: - - node_modules - policy: pull