CI: Only run Clippy on stable and nightly.

This commit is contained in:
Martin Hoffmann
2021-11-24 12:05:41 +01:00
parent 9b7daf69fd
commit 11a3b34935
+2 -2
View File
@@ -15,9 +15,9 @@ jobs:
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- if: matrix.rust != 'beta'
- if: matrix.rust == 'stable' || matrix.rust == "nightly"
run: rustup component add clippy
- if: matrix.rust != 'beta'
- if: matrix.rust == 'stable' || matrix.rust == "nightly"
run: cargo clippy --all-features -- -D warnings
- if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest'
run: cargo fmt --all -- --check