Skip to content

Commit d5ae238

Browse files
committed
Run clippy checks in CI
1 parent 913e0d9 commit d5ae238

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/rust.yml

+17
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ jobs:
4141
4242
- run: cargo test --all
4343

44+
clippy:
45+
name: Clippy
46+
runs-on: ubuntu-24.04
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v4
50+
51+
- name: Update rust
52+
run: |
53+
# use beta since it gives us near-latest fixes but isn't as volatile as nightly
54+
rustup default beta
55+
rustup component add clippy
56+
rustup update --no-self-update
57+
58+
- run: cargo clippy --all
59+
4460
msrv:
4561
name: Check building with the MSRV
4662
runs-on: ubuntu-24.04
@@ -59,6 +75,7 @@ jobs:
5975
needs:
6076
- test
6177
- msrv
78+
- clippy
6279
runs-on: ubuntu-latest
6380
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
6481
# failed" as success. So we have to do some contortions to ensure the job fails if any of its

0 commit comments

Comments
 (0)