enable CI cache
parent
e38bab5957
commit
d08664cea5
|
@ -1,6 +1,7 @@
|
||||||
variables:
|
variables:
|
||||||
RUST_IMAGE: "rust:latest"
|
RUST_IMAGE: "rust:latest"
|
||||||
NODE_IMAGE: "node:lts"
|
NODE_IMAGE: "node:lts"
|
||||||
|
CARGO_HOME: $CI_PROJECT_DIR/cargo
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- lint
|
- lint
|
||||||
|
@ -8,6 +9,13 @@ stages:
|
||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
|
|
||||||
|
cache:
|
||||||
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
|
paths:
|
||||||
|
- target
|
||||||
|
- cargo
|
||||||
|
- ui/node_modules
|
||||||
|
|
||||||
lint:backend:
|
lint:backend:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: $RUST_IMAGE
|
image: $RUST_IMAGE
|
||||||
|
|
Loading…
Reference in New Issue