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: jobs:
fmt: lint:
name: Rustfmt name: Rustfmt + Clippy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable
with: with:
components: rustfmt components: rustfmt,clippy
- run: cargo fmt --all -- --check - run: |
cargo fmt --all -- --check
clippy: cargo 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
linux-test: linux-test:
name: Test (Linux) name: Test (Linux)