1
0
Fork 0

ci: skip linting and don't cache build

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-12-03 14:52:56 +01:00
parent 53cf875f6f
commit 2920960efa
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -13,7 +13,7 @@ cache:
paths: paths:
- $HOME/.cache/ - $HOME/.cache/
- $HOME/.cargo/ - $HOME/.cargo/
- target/ # - target/
default: default:
@ -77,11 +77,11 @@ pages:
rules: rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
lint-code: # lint-code:
stage: extras # stage: extras
needs: [ "cargo-test" ] # needs: [ "cargo-test" ]
script: # script:
- rustup component add rustfmt # - rustup component add rustfmt
- cargo fmt -- --check # - cargo fmt -- --check
- rustup component add clippy # - rustup component add clippy
- cargo clippy -- -D warnings # - cargo clippy -- -D warnings