Skip to content

Commit

Permalink
chore(gha): add clippy job
Browse files Browse the repository at this point in the history
Introduces a new job `clippy` to `build` GitHub Actions workflow, which
runs `clippy` check.
  • Loading branch information
kikuomax committed Mar 5, 2024
1 parent 2d045dc commit 56f27c4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 56f27c4

Please sign in to comment.