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