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
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: