Skip to content

Commit

Permalink
github: unify fmt and clippy step
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Dec 6, 2024
1 parent c309894 commit 2543978
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,17 @@ on:
- "*"

jobs:
fmt:
name: Rustfmt
lint:
name: Rustfmt + Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy -- -D warnings
components: rustfmt,clippy
- run: |
cargo fmt --all -- --check
cargo clippy
linux-test:
name: Test (Linux)
Expand Down

0 comments on commit 2543978

Please sign in to comment.