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
53 - name: Test "--fix -Zunstable-options"
54 run: cargo run --features deny-warnings,internal-lints --bin cargo-clippy -- clippy --fix -Zunstable-options
56 - name: Test Workspace
57 run: cargo test --all --features deny-warnings,internal-lints
59 - name: Test clippy_dev
60 run: cargo test --features deny-warnings
61 working-directory: clippy_dev
63 - name: Test cargo-clippy
64 run: ../target/debug/cargo-clippy
65 working-directory: clippy_workspace_tests
67 - name: Test clippy-driver
68 run: bash .github/driver.sh
72 - name: Test cargo dev new lint
74 cargo dev new_lint --name new_early_pass --pass early
75 cargo dev new_lint --name new_late_pass --pass late