From f1e04fe5c0e5779f3e4b90030b6ed7e79f38945b Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Thu, 25 Jul 2024 09:59:19 +0200 Subject: [PATCH] chore: clippy in ci --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fbab1e4..45cf49e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,18 @@ cargo:fmtcheck: - cargo fmt --version - cargo fmt --all -- --check +cargo:clippy: + image: "rust:slim" + stage: check + variables: + RUSTFLAGS: "-Dwarnings" + script: + - cp src/constants.rs.in src/constants.rs + - rustup component add clippy + - rustc -Vv && cargo -Vv + - cargo clippy --version + - cargo clippy --all-targets --all-features + cargo:test: stage: test script: