Skip to content

Commit

Permalink
ci: add clippy and fmt checks workflow (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] authored Jan 1, 2025
1 parent 5b1218a commit 868f76c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint

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

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --check
- name: Run clippy
run: cargo clippy -- -D warnings

0 comments on commit 868f76c

Please sign in to comment.