mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
ci: Add a job to deny clippy warnings
This commit is contained in:
parent
25b8771541
commit
bf52c09991
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@ -28,6 +28,16 @@ jobs:
|
||||
cargo fmt --all --manifest-path $manifest --check
|
||||
done
|
||||
|
||||
# Ensure there are no clippy warnings
|
||||
clippy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: rustup update stable && rustup default stable
|
||||
- run: rustup component add clippy
|
||||
# Only check cargo lib for now
|
||||
- run: cargo clippy -p cargo --lib -- -D warnings
|
||||
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
|
Loading…
x
Reference in New Issue
Block a user