gitlab-ci: simplify

This commit is contained in:
Johannes Loher 2020-12-27 18:25:06 +01:00
parent 7e70f79f58
commit 393d3f8b34

View file

@ -1,7 +1,6 @@
image: node:latest image: node:latest
stages: stages:
- prepare
- test - test
- build - build
- deploy - deploy
@ -13,23 +12,17 @@ cache: &global_cache
policy: pull policy: pull
untracked: true untracked: true
paths: paths:
- node_modules/
- .npm/ - .npm/
install-dependencies:
stage: prepare
script:
- npm ci --cache .npm --prefer-offline
cache:
<<: *global_cache
policy: pull-push
lint: lint:
stage: test stage: test
before_script:
- npm ci --cache .npm --prefer-offline
script: script:
- npm run lint - npm run lint
cache: cache:
<<: *global_cache <<: *global_cache
policy: pull-push
# Test: # Test:
# stage: Test # stage: Test
@ -40,6 +33,8 @@ lint:
build: build:
stage: build stage: build
before_script:
- npm ci --cache .npm --prefer-offline
script: script:
- npm run build - npm run build
cache: cache: