From a847dd55ad8eee627bb304ffff08f6265790702f Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 8 May 2024 03:58:21 +0900 Subject: [PATCH] ci: fix cargo clippy task --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f4f4d54c7..3fd6e50e68 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -119,7 +119,7 @@ cargo_unit_test: cargo_clippy: stage: test rules: - - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' || $CI_COMMIT_BRANCH == 'develop' changes: paths: - packages/backend-rs/**/* @@ -129,6 +129,7 @@ cargo_clippy: - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'main' when: never script: + - rustup component add clippy - cargo clippy -- -D warnings renovate: