fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1name: Clippy Test 2 3on: 4 push: 5 # Ignore bors branches, since they are covered by `clippy_bors.yml` 6 branches-ignore: 7 - auto 8 - try 9 # Don't run Clippy tests, when only text files were modified 10 paths-ignore: 11 - 'COPYRIGHT' 12 - 'LICENSE-*' 13 - '**.md' 14 - '**.txt' 15 pull_request: 16 # Don't run Clippy tests, when only text files were modified 17 paths-ignore: 18 - 'COPYRIGHT' 19 - 'LICENSE-*' 20 - '**.md' 21 - '**.txt' 22 23env: 24 RUST_BACKTRACE: 1 25 CARGO_TARGET_DIR: '${{ github.workspace }}/target' 26 NO_FMT_TEST: 1 27 CARGO_INCREMENTAL: 0 28 29jobs: 30 base: 31 # NOTE: If you modify this job, make sure you copy the changes to clippy_bors.yml 32 runs-on: ubuntu-latest 33 34 steps: 35 # Setup 36 - uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master 37 with: 38 github_token: "${{ secrets.github_token }}" 39 40 - name: Checkout 41 uses: actions/checkout@v3 42 43 - name: Install toolchain 44 run: rustup show active-toolchain 45 46 # Run 47 - name: Set LD_LIBRARY_PATH (Linux) 48 run: | 49 SYSROOT=$(rustc --print sysroot) 50 echo "LD_LIBRARY_PATH=${SYSROOT}/lib${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV 51 52 - name: Build 53 run: cargo build --tests --features deny-warnings,internal 54 55 - name: Test 56 run: cargo test --features deny-warnings,internal 57 58 - name: Test clippy_lints 59 run: cargo test --features deny-warnings,internal 60 working-directory: clippy_lints 61 62 - name: Test clippy_utils 63 run: cargo test --features deny-warnings,internal 64 working-directory: clippy_utils 65 66 - name: Test rustc_tools_util 67 run: cargo test --features deny-warnings 68 working-directory: rustc_tools_util 69 70 - name: Test clippy_dev 71 run: cargo test --features deny-warnings 72 working-directory: clippy_dev 73 74 - name: Test clippy-driver 75 run: bash .github/driver.sh 76 env: 77 OS: ${{ runner.os }}