ci: fix cargo clippy task

This commit is contained in:
naskya 2024-05-08 03:58:21 +09:00
parent 5382dc5da8
commit a847dd55ad
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
1 changed files with 2 additions and 1 deletions

View File

@ -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: