5 # Ignore bors branches, since they are covered by `clippy_bors.yml`
9 # Don't run Clippy tests, when only textfiles were modified
16 # Don't run Clippy tests, when only textfiles were modified
25 CARGO_TARGET_DIR: '${{ github.workspace }}/target'
30 runs-on: ubuntu-latest
34 - uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
36 github_token: "${{ secrets.github_token }}"
39 uses: actions/checkout@v2.3.3
41 - name: Install toolchain
42 run: rustup show active-toolchain
45 - name: Set LD_LIBRARY_PATH (Linux)
47 SYSROOT=$(rustc --print sysroot)
48 echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
51 run: cargo build --features deny-warnings,internal-lints
54 run: cargo test --features deny-warnings,internal-lints
56 - name: Test clippy_lints
57 run: cargo test --features deny-warnings,internal-lints
58 working-directory: clippy_lints
60 - name: Test rustc_tools_util
61 run: cargo test --features deny-warnings
62 working-directory: rustc_tools_util
64 - name: Test clippy_dev
65 run: cargo test --features deny-warnings
66 working-directory: clippy_dev
68 - name: Test cargo-clippy
69 run: ../target/debug/cargo-clippy
70 working-directory: clippy_workspace_tests
72 - name: Test clippy-driver
73 run: bash .github/driver.sh
77 - name: Test cargo dev new lint
79 cargo dev new_lint --name new_early_pass --pass early
80 cargo dev new_lint --name new_late_pass --pass late