jobs:
base:
+ # NOTE: If you modify this job, make sure you copy the changes to clippy_bors.yml
runs-on: ubuntu-latest
steps:
echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
- name: Build
- run: cargo build --features deny-warnings,internal-lints
+ run: cargo build --features deny-warnings,internal-lints,metadata-collector-lint
- - name: Test "--fix -Zunstable-options"
- run: cargo run --features deny-warnings,internal-lints --bin cargo-clippy -- clippy --fix -Zunstable-options
+ - name: Test
+ run: cargo test --features deny-warnings,internal-lints,metadata-collector-lint
- - name: Test Workspace
- run: cargo test --all --features deny-warnings,internal-lints
+ - name: Test clippy_lints
+ run: cargo test --features deny-warnings,internal-lints,metadata-collector-lint
+ working-directory: clippy_lints
+
+ - name: Test rustc_tools_util
+ run: cargo test --features deny-warnings
+ working-directory: rustc_tools_util
- name: Test clippy_dev
run: cargo test --features deny-warnings
run: ../target/debug/cargo-clippy
working-directory: clippy_workspace_tests
+ - name: Test cargo-clippy --fix
+ run: ../target/debug/cargo-clippy clippy --fix
+ working-directory: clippy_workspace_tests
+
- name: Test clippy-driver
run: bash .github/driver.sh
env: