feat(ci): add clippy lint step for Rust services
INF-05: New rust-ci.yml runs cargo clippy with -D warnings for both chat-server and stream-server.
This commit is contained in:
parent
13c21ac114
commit
68069df6e4
1 changed files with 35 additions and 0 deletions
35
.github/workflows/rust-ci.yml
vendored
Normal file
35
.github/workflows/rust-ci.yml
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
name: Rust CI
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'veza-chat-server/**'
|
||||
- 'veza-stream-server/**'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'veza-chat-server/**'
|
||||
- 'veza-stream-server/**'
|
||||
|
||||
jobs:
|
||||
clippy-chat:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: clippy
|
||||
- name: Clippy lint
|
||||
run: cargo clippy -- -D warnings
|
||||
working-directory: veza-chat-server
|
||||
|
||||
clippy-stream:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: clippy
|
||||
- name: Clippy lint
|
||||
run: cargo clippy -- -D warnings
|
||||
working-directory: veza-stream-server
|
||||
Loading…
Reference in a new issue