Add 'install' step and cache it
This commit is contained in:
parent
1a1df69d0b
commit
677ccfdf7e
1 changed files with 9 additions and 4 deletions
|
@ -8,17 +8,22 @@ cache:
|
||||||
files:
|
files:
|
||||||
- yarn.lock
|
- yarn.lock
|
||||||
paths:
|
paths:
|
||||||
- node_modules
|
- node_modules/
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- install
|
||||||
- lint
|
- lint
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script:
|
install_dependencies:
|
||||||
- env
|
stage: install
|
||||||
- yarn
|
script:
|
||||||
|
- yarn install --ignore-scripts
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
|
||||||
lint-js:
|
lint-js:
|
||||||
stage: lint
|
stage: lint
|
||||||
|
|
Loading…
Reference in a new issue