ci: add cargo clippy lint step to chat and stream CI workflows
Add clippy with -D warnings (deny all warnings) to both Rust CI pipelines. The production-deploy workflow already had clippy. This ensures lint issues are caught before merge for both services. Addresses audit finding D15: clippy not present in all Rust workflows. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c707779273
commit
ba232c2f56
2 changed files with 10 additions and 0 deletions
5
.github/workflows/chat-ci.yml
vendored
5
.github/workflows/chat-ci.yml
vendored
|
|
@ -23,6 +23,11 @@ jobs:
|
|||
|
||||
- name: Set up Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: clippy
|
||||
|
||||
- name: Lint with clippy
|
||||
run: cargo clippy --all-targets -- -D warnings
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --all
|
||||
|
|
|
|||
5
.github/workflows/stream-ci.yml
vendored
5
.github/workflows/stream-ci.yml
vendored
|
|
@ -23,6 +23,11 @@ jobs:
|
|||
|
||||
- name: Set up Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: clippy
|
||||
|
||||
- name: Lint with clippy
|
||||
run: cargo clippy --all-targets -- -D warnings
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --all
|
||||
|
|
|
|||
Loading…
Reference in a new issue