Skip to content
Snippets Groups Projects
Verified Commit c788cf3f authored by Geoffrey Arthaud's avatar Geoffrey Arthaud
Browse files

Separate deps fetching and linting for optimization

parent 6e25530d
No related merge requests found
......@@ -20,7 +20,7 @@ default:
policy: pull
stages:
- deps_and_lint
- prepare
- build_test
- release
- deploy
......@@ -67,19 +67,24 @@ release-gpd-image:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG
check-format:
stage: deps_and_lint
cache-dependencies:
stage: prepare
image: ${RUST_IMAGE}:${RUST_VERSION}
script:
- cargo fetch
- cargo fmt --all -- --check
- cargo clippy -- -D warnings
cache:
key: rust-deps
paths:
- .cargo
policy: pull-push
check-format:
stage: build_test
image: ${RUST_IMAGE}:${RUST_VERSION}
script:
- cargo fmt --all -- --check
- cargo clippy -- -D warnings
test-rust-current:
stage: build_test
image: ${RUST_IMAGE}:${RUST_VERSION}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment