Skip to content

Commit f7b780f

Browse files
ci: Add a clippy check that only fails on errors.
1 parent bdab1d9 commit f7b780f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,18 @@ jobs:
150150
- run: cargo check --lib
151151
- run: cargo check --lib --all-features
152152

153+
clippy:
154+
name: Clippy
155+
runs-on: ubuntu-latest
156+
steps:
157+
- uses: actions/checkout@v4
158+
- name: Install Rust
159+
run: |
160+
rustup toolchain install stable --no-self-update --profile minimal --component rustfmt
161+
rustup default stable
162+
shell: bash
163+
- run: cargo clippy
164+
153165
rustfmt:
154166
name: Rustfmt
155167
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)