Skip to content

Commit bf52c09

Browse files
committed
ci: Add a job to deny clippy warnings
1 parent 25b8771 commit bf52c09

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ jobs:
2828
cargo fmt --all --manifest-path $manifest --check
2929
done
3030
31+
# Ensure there are no clippy warnings
32+
clippy:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v3
36+
- run: rustup update stable && rustup default stable
37+
- run: rustup component add clippy
38+
# Only check cargo lib for now
39+
- run: cargo clippy -p cargo --lib -- -D warnings
40+
3141
test:
3242
runs-on: ${{ matrix.os }}
3343
env:

0 commit comments

Comments
 (0)