From 5f0788ed0b9e48f9efb3224be100ef180018c503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Tue, 30 Mar 2021 11:02:38 +0200 Subject: [PATCH] Add clippy to CI (#241) * Add clippy to CI * Fix `Cargo.toml` path --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0562ac5ae..bd7198e7a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,6 +73,12 @@ fmt: script: - cargo fmt --verbose --all -- --check +clippy: + stage: check + <<: *docker-env + script: + - cargo clippy --verbose -- -D warnings; + #### stage: test (all features) test: @@ -98,6 +104,7 @@ test-new-project-template: - cargo check --verbose - cargo test --verbose --all - cargo fmt --verbose --all -- --check + - cargo clippy --verbose --manifest-path Cargo.toml -- -D warnings; #### stage: build (default features)