Skip to content

Commit 436c1bd

Browse files
committed
Run clippy checks in CI
1 parent fb14a61 commit 436c1bd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/rust.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,22 @@ jobs:
3636
3737
- run: cargo test --all
3838

39+
clippy:
40+
name: Clippy
41+
runs-on: ubuntu-24.04
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
46+
- name: Update rust
47+
run: |
48+
# use beta since it gives us near-latest fixes but isn't as volatile as nightly
49+
rustup default beta
50+
rustup component add clippy
51+
rustup update --no-self-update
52+
53+
- run: cargo clippy --all
54+
3955
msrv:
4056
name: Check building with the MSRV
4157
runs-on: ubuntu-24.04
@@ -54,6 +70,7 @@ jobs:
5470
needs:
5571
- test
5672
- msrv
73+
- clippy
5774
runs-on: ubuntu-latest
5875
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
5976
# failed" as success. So we have to do some contortions to ensure the job fails if any of its

0 commit comments

Comments
 (0)