From 393d3f8b34c7411426db8b7e09a83d71a6fd7d22 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sun, 27 Dec 2020 18:25:06 +0100 Subject: [PATCH] gitlab-ci: simplify --- .gitlab-ci.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2626e92c..d8edfe21 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,6 @@ image: node:latest stages: - - prepare - test - build - deploy @@ -13,23 +12,17 @@ cache: &global_cache policy: pull untracked: true paths: - - node_modules/ - .npm/ -install-dependencies: - stage: prepare - script: - - npm ci --cache .npm --prefer-offline - 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 @@ -40,6 +33,8 @@ lint: build: stage: build + before_script: + - npm ci --cache .npm --prefer-offline script: - npm run build cache: