5 # Ignore bors branches, since they are covered by `clippy_bors.yml`
9 # Don't run Clippy tests, when only text files were modified
16 # Don't run Clippy tests, when only text files were modified
25 CARGO_TARGET_DIR: '${{ github.workspace }}/target'
28 CARGO_UNSTABLE_SPARSE_REGISTRY: true
32 # NOTE: If you modify this job, make sure you copy the changes to clippy_bors.yml
33 runs-on: ubuntu-latest
37 - uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
39 github_token: "${{ secrets.github_token }}"
42 uses: actions/checkout@v3.0.2
44 - name: Install toolchain
45 run: rustup show active-toolchain
48 - name: Set LD_LIBRARY_PATH (Linux)
50 SYSROOT=$(rustc --print sysroot)
51 echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
54 run: cargo build --features deny-warnings,internal
57 run: cargo test --features deny-warnings,internal
59 - name: Test clippy_lints
60 run: cargo test --features deny-warnings,internal
61 working-directory: clippy_lints
63 - name: Test clippy_utils
64 run: cargo test --features deny-warnings,internal
65 working-directory: clippy_utils
67 - name: Test rustc_tools_util
68 run: cargo test --features deny-warnings
69 working-directory: rustc_tools_util
71 - name: Test clippy_dev
72 run: cargo test --features deny-warnings
73 working-directory: clippy_dev
75 - name: Test clippy-driver
76 run: bash .github/driver.sh