github: unify fmt and clippy step

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-12-06 10:34:49 -08:00
parent c309894be8
commit 2543978ffe

View File

@@ -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)