diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 86353bc6..c9a33af4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ image: node:latest stages: - - mytest + - prepare - test - build - deploy @@ -12,17 +12,22 @@ cache: &global_cache - package-lock.json policy: pull paths: - - .npm/ + - node_modules/ + +install-dependencies: + stage: prepare + script: + - npm install + cache: + <<: *global_cache + policy: pull-push lint: stage: test - before_script: - - npm ci --cache .npm --prefer-offline script: - npm run lint cache: <<: *global_cache - policy: pull-push # Test: # stage: Test @@ -33,8 +38,6 @@ lint: build: stage: build - before_script: - - npm ci --cache .npm --prefer-offline script: - npm run build cache: