Skip to content

Commit

Permalink
Add clippy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adamconkey committed Dec 13, 2024
1 parent b388212 commit b84e0a9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Clippy

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings (Clippy lints)
RUSTFLAGS: "-Dwarnings"

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint code
run: cargo clippy --all-targets --all-features

0 comments on commit b84e0a9

Please sign in to comment.