diff options
| author | Johann Hemmann <johann.hemmann@code.berlin> | 2024-01-22 00:06:52 +0100 |
|---|---|---|
| committer | Johann Hemmann <johann.hemmann@code.berlin> | 2024-01-30 14:44:44 +0100 |
| commit | 73c7c729c5bc67d4e4fe713614ce2696665ed02a (patch) | |
| tree | c3da8e73171e4919bdf756872cb85990bd816eb6 | |
| parent | 75a42f1a09fec0e4f31cbfa31056a3decc4c961e (diff) | |
| download | rust-73c7c729c5bc67d4e4fe713614ce2696665ed02a.tar.gz rust-73c7c729c5bc67d4e4fe713614ce2696665ed02a.zip | |
CI: add clippy
| -rw-r--r-- | .github/workflows/ci.yaml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index be830415f9c..52cbda5a613 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -90,7 +90,7 @@ jobs: - name: Switch to stable toolchain run: | rustup update --no-self-update stable - rustup component add --toolchain stable rust-src + rustup component add --toolchain stable rust-src clippy rustup default stable - name: Run analysis-stats on rust-analyzer @@ -103,6 +103,10 @@ jobs: RUSTC_BOOTSTRAP: 1 run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std + - name: clippy + if: matrix.os == 'ubuntu-latest' + run: cargo clippy --all-targets -- -D warnings + # Weird targets to catch non-portable code rust-cross: if: github.repository == 'rust-lang/rust-analyzer' |
