Skip to content

Commit b0d4267

Browse files
committed
Run clippy checks in CI
1 parent 4aafcb9 commit b0d4267

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
@@ -70,6 +86,7 @@ jobs:
7086
success:
7187
needs:
7288
- test
89+
- clippy
7390
- msrv
7491
- rustfmt
7592
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)