Added node_modules cache to CI
This commit is contained in:
parent
c54fa18b50
commit
0654735f7c
@ -5,17 +5,32 @@ stages:
|
||||
- build
|
||||
- package
|
||||
|
||||
cache:
|
||||
- key:
|
||||
files:
|
||||
- package-lock.json
|
||||
paths:
|
||||
- node_modules
|
||||
- key:
|
||||
files:
|
||||
- frontend/package-lock.json
|
||||
paths:
|
||||
- frontend/node_modules
|
||||
|
||||
before_script:
|
||||
- npm ci
|
||||
- cd frontend
|
||||
- npm ci
|
||||
|
||||
test_backend:
|
||||
stage: test
|
||||
script:
|
||||
- npm ci
|
||||
- npm run lint
|
||||
|
||||
test_frontend:
|
||||
stage: test
|
||||
script:
|
||||
- cd frontend
|
||||
- npm ci
|
||||
- npm run lint
|
||||
|
||||
build_backend:
|
||||
@ -24,7 +39,6 @@ build_backend:
|
||||
- job: test_backend
|
||||
artifacts: false
|
||||
script:
|
||||
- npm ci
|
||||
- npm webpack
|
||||
artifacts:
|
||||
paths:
|
||||
@ -38,7 +52,6 @@ build_frontend:
|
||||
artifacts: false
|
||||
script:
|
||||
- cd frontend
|
||||
- npm ci
|
||||
- npm run lint
|
||||
artifacts:
|
||||
paths:
|
||||
@ -47,6 +60,7 @@ build_frontend:
|
||||
|
||||
package_server:
|
||||
stage: package
|
||||
cache: []
|
||||
needs:
|
||||
- job: build_backend
|
||||
artifacts: true
|
||||
|
Loading…
Reference in New Issue
Block a user