gitlab-ci: simplify
This commit is contained in:
parent
7e70f79f58
commit
393d3f8b34
1 changed files with 5 additions and 10 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue