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:
|
cargo_clippy:
|
||||||
stage: test
|
stage: test
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' || $CI_COMMIT_BRANCH == 'develop'
|
||||||
changes:
|
changes:
|
||||||
paths:
|
paths:
|
||||||
- packages/backend-rs/**/*
|
- packages/backend-rs/**/*
|
||||||
|
@ -129,6 +129,7 @@ cargo_clippy:
|
||||||
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'main'
|
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'main'
|
||||||
when: never
|
when: never
|
||||||
script:
|
script:
|
||||||
|
- rustup component add clippy
|
||||||
- cargo clippy -- -D warnings
|
- cargo clippy -- -D warnings
|
||||||
|
|
||||||
renovate:
|
renovate:
|
||||||
|
|
Loading…
Reference in a new issue