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 913e0d9 commit d5ae238
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ 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
- run: cargo clippy --all

msrv:
name: Check building with the MSRV
runs-on: ubuntu-24.04
Expand All @@ -59,6 +75,7 @@ jobs:
needs:
- test
- msrv
- clippy
runs-on: ubuntu-latest
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
Expand Down

0 comments on commit d5ae238

Please sign in to comment.