mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
CI: add clippy
This commit is contained in:
parent
75a42f1a09
commit
73c7c729c5
1 changed files with 5 additions and 1 deletions
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
|
@ -90,7 +90,7 @@ jobs:
|
||||||
- name: Switch to stable toolchain
|
- name: Switch to stable toolchain
|
||||||
run: |
|
run: |
|
||||||
rustup update --no-self-update stable
|
rustup update --no-self-update stable
|
||||||
rustup component add --toolchain stable rust-src
|
rustup component add --toolchain stable rust-src clippy
|
||||||
rustup default stable
|
rustup default stable
|
||||||
|
|
||||||
- name: Run analysis-stats on rust-analyzer
|
- name: Run analysis-stats on rust-analyzer
|
||||||
|
@ -103,6 +103,10 @@ jobs:
|
||||||
RUSTC_BOOTSTRAP: 1
|
RUSTC_BOOTSTRAP: 1
|
||||||
run: target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std
|
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
|
# Weird targets to catch non-portable code
|
||||||
rust-cross:
|
rust-cross:
|
||||||
if: github.repository == 'rust-lang/rust-analyzer'
|
if: github.repository == 'rust-lang/rust-analyzer'
|
||||||
|
|
Loading…
Reference in a new issue