Skip to content

Commit

Permalink
GitHub: Add clippy workflow
Browse files Browse the repository at this point in the history
Add clippy workflow on push and PRs.

Signed-off-by: Elliot Berman <[email protected]>
  • Loading branch information
eberman-quic committed Dec 17, 2024
1 parent 727c573 commit e712bae
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: [push, pull_request]
name: Rust check

# Make sure CI fails on all warnings, including Clippy lints
env:
RUSTFLAGS: "-Dwarnings"

jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: Run Format
run: cargo fmt --all -- --check

0 comments on commit e712bae

Please sign in to comment.