From 798da3bd02390b70c7cad1ef4e52b82578029e54 Mon Sep 17 00:00:00 2001 From: Greg Miller Date: Sun, 26 Apr 2026 15:55:20 -0400 Subject: [PATCH] Add cargo fmt and clippy checks to CI Adds a separate lint job that runs cargo fmt --check and cargo clippy --all-targets with -D warnings. Lint output is deterministic across OSes, so it runs only on Ubuntu in parallel with the cross-OS test matrix. --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6453add..8f012fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,4 +12,15 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo test \ No newline at end of file + - run: cargo test + + lint: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + - run: cargo fmt --check + - run: cargo clippy --all-targets -- -D warnings \ No newline at end of file