From 56f27c482fd5934edcddc5791df83ba62368ceac Mon Sep 17 00:00:00 2001 From: Kikuo Emoto Date: Tue, 5 Mar 2024 17:59:06 +0900 Subject: [PATCH] chore(gha): add clippy job Introduces a new job `clippy` to `build` GitHub Actions workflow, which runs `clippy` check. --- .github/workflows/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 488661b..5b65755 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,20 @@ jobs: - name: Check format run: cargo fmt --all -- --check + clippy: + name: clippy + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v4 + - name: Install Rust toolchain (clippy) + uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - name: Check clippy + run: cargo clippy --lib --bins --tests --examples -- -D warnings + # "--benches" are excluded as they require nightly Rust + test: name: Build and test strategy: