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>
34 lines
627 B
YAML
34 lines
627 B
YAML
name: Chat Server CI
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "apps/chat-server/**"
|
|
- ".github/workflows/chat-ci.yml"
|
|
pull_request:
|
|
paths:
|
|
- "apps/chat-server/**"
|
|
- ".github/workflows/chat-ci.yml"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: apps/chat-server
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- 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
|
|
|