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'
31 # NOTE: If you modify this job, make sure you copy the changes to clippy_bors.yml
32 runs-on: ubuntu-latest
36 - uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
38 github_token: "${{ secrets.github_token }}"
41 uses: actions/checkout@v3.0.2
43 - name: Install toolchain
44 run: rustup show active-toolchain
47 - name: Set LD_LIBRARY_PATH (Linux)
49 SYSROOT=$(rustc --print sysroot)
50 echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
53 run: cargo build --features deny-warnings,internal
56 run: cargo test --features deny-warnings,internal
58 - name: Test clippy_lints
59 run: cargo test --features deny-warnings,internal
60 working-directory: clippy_lints
62 - name: Test clippy_utils
63 run: cargo test --features deny-warnings,internal
64 working-directory: clippy_utils
66 - name: Test rustc_tools_util
67 run: cargo test --features deny-warnings
68 working-directory: rustc_tools_util
70 - name: Test clippy_dev
71 run: cargo test --features deny-warnings
72 working-directory: clippy_dev
74 - name: Test clippy-driver
75 run: bash .github/driver.sh