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