Remove clippy from main CI workflow

We don't run clippy on PRs. It is covered by a separate clippy.yml
workflow.
This commit is contained in:
David Tolnay 2020-05-05 17:03:57 -07:00
parent f369707dc5
commit 02631cef42
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 1 additions and 18 deletions

View File

@ -104,21 +104,6 @@ jobs:
- uses: dtolnay/rust-toolchain@1.36.0
- run: cd serde && cargo build --no-default-features --features alloc
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
# The need for -Aredundant_field_names here is a Clippy bug.
# https://github.com/rust-lang/rust-clippy/issues/5356
- run: cargo clippy -- -D clippy::all -A clippy::redundant_field_names
- run: cd serde && cargo clippy --features rc,unstable -- -D clippy::all -A clippy::redundant_field_names
- run: cd serde_derive && cargo clippy -- -D clippy::all
- run: cd serde_test && cargo clippy -- -D clippy::all -A clippy::redundant_field_names
- run: cd test_suite && cargo clippy --tests --features unstable -- -D clippy::all -A clippy::redundant_field_names
- run: cd test_suite/no_std && cargo clippy -- -D clippy::all -A clippy::redundant_field_names
emscripten:
name: Emscripten
runs-on: ubuntu-latest

View File

@ -22,9 +22,7 @@ jobs:
- dir: test_suite/no_std
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- uses: dtolnay/rust-toolchain@clippy
# The need for -Aredundant_field_names here is a Clippy bug.
# https://github.com/rust-lang/rust-clippy/issues/5356
- name: cargo clippy ${{matrix.features && format('--features {0}', matrix.features)}}