Skip to content

Commit

Permalink
Run clippy checks in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Dec 29, 2024
1 parent 51363fa commit 56619ab
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@ jobs:
- run: cargo test --all

clippy:
name: Clippy
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Update rust
run: |
# use beta since it gives us near-latest fixes but isn't as volatile as nightly
rustup default beta
rustup component add clippy
rustup update --no-self-update
# FIXME(msrv): suggestions do not work in 1.23, nor dows `#![allow(clippy::...)]`
- run: cargo clippy --all -- -Aclippy::while_let_loop

msrv:
name: Check building with the MSRV
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -70,6 +87,7 @@ jobs:
success:
needs:
- test
- clippy
- msrv
- rustfmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit 56619ab

Please sign in to comment.