Optimized cache for CI
This commit is contained in:
parent
41b1e8837b
commit
ce216cde09
@ -5,16 +5,17 @@ stages:
|
||||
- build
|
||||
- package
|
||||
|
||||
cache:
|
||||
- key:
|
||||
files:
|
||||
- yarn.lock
|
||||
- frontend/yarn.lock
|
||||
paths:
|
||||
- .yarn
|
||||
- node_modules
|
||||
- frontend/.yarn
|
||||
- frontend/node_modules
|
||||
cache: &global_cache
|
||||
key:
|
||||
files:
|
||||
- yarn.lock
|
||||
- frontend/yarn.lock
|
||||
paths:
|
||||
- .yarn
|
||||
- node_modules
|
||||
- frontend/.yarn
|
||||
- frontend/node_modules
|
||||
policy: pull
|
||||
|
||||
before_script:
|
||||
- yarn install --cache-folder .yarn --frozen-lockfile
|
||||
@ -23,11 +24,17 @@ before_script:
|
||||
- cd ..
|
||||
|
||||
test_backend:
|
||||
cache:
|
||||
<<: *global_cache
|
||||
policy: pull-push
|
||||
stage: test
|
||||
script:
|
||||
- yarn lint
|
||||
|
||||
test_frontend:
|
||||
cache:
|
||||
<<: *global_cache
|
||||
policy: pull-push
|
||||
stage: test
|
||||
script:
|
||||
- cd frontend
|
||||
|
Loading…
Reference in New Issue
Block a user