ci: fix cargo clippy task
This commit is contained in:
parent
5382dc5da8
commit
a847dd55ad
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue