From 886edfc89bcb8579efb351562b5f102aeb70b07e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Wed, 19 Jan 2022 23:09:16 +0300 Subject: [PATCH 1/2] ci: run clippy --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4d7ce0d..2a64519 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: "rust:latest" stages: - test + - lint variables: CARGO_HOME: "${CI_PROJECT_DIR}/.cargo" @@ -19,3 +20,10 @@ test: script: - cargo build --release --locked - cargo test --release --locked + +lint: + stage: lint + before_script: + - rustup component add clippy + script: + - cargo clippy --all -- -D warnings -- GitLab From 47fb4a29e5a1a953d67519cf02abd550788c316f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Wed, 19 Jan 2022 23:09:16 +0300 Subject: [PATCH 2/2] ci: run clippy --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4d7ce0d..2a64519 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: "rust:latest" stages: - test + - lint variables: CARGO_HOME: "${CI_PROJECT_DIR}/.cargo" @@ -19,3 +20,10 @@ test: script: - cargo build --release --locked - cargo test --release --locked + +lint: + stage: lint + before_script: + - rustup component add clippy + script: + - cargo clippy --all -- -D warnings -- GitLab