Skip to content

Commit

Permalink
Add cargo clippy automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jan 20, 2025
1 parent d8e79e2 commit f0e8bf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/rustfmt.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Require Format
name: Rust Lint
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
rustfmt:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Check rustfmt
run: cargo fmt --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings

0 comments on commit f0e8bf4

Please sign in to comment.