sforkowany z mirror/soapbox
GitLab CI: fix cache
rodzic
403395d7da
commit
2a98a1e725
|
@ -3,12 +3,13 @@ image: node:18
|
||||||
variables:
|
variables:
|
||||||
NODE_ENV: test
|
NODE_ENV: test
|
||||||
|
|
||||||
cache:
|
cache: &cache
|
||||||
key:
|
key:
|
||||||
files:
|
files:
|
||||||
- yarn.lock
|
- yarn.lock
|
||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
|
policy: pull
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- deps
|
- deps
|
||||||
|
@ -21,6 +22,9 @@ deps:
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
- yarn.lock
|
- yarn.lock
|
||||||
|
cache:
|
||||||
|
<<: *cache
|
||||||
|
policy: push
|
||||||
|
|
||||||
danger:
|
danger:
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -28,7 +32,6 @@ danger:
|
||||||
# https://github.com/danger/danger-js/issues/1029#issuecomment-998915436
|
# https://github.com/danger/danger-js/issues/1029#issuecomment-998915436
|
||||||
- export CI_MERGE_REQUEST_IID=${CI_OPEN_MERGE_REQUESTS#*!}
|
- export CI_MERGE_REQUEST_IID=${CI_OPEN_MERGE_REQUESTS#*!}
|
||||||
- npx danger ci
|
- npx danger ci
|
||||||
cache: []
|
|
||||||
|
|
||||||
lint-js:
|
lint-js:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
Ładowanie…
Reference in New Issue