fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1name: Clippy Dev Test 2 3on: 4 push: 5 branches: 6 - auto 7 - try 8 pull_request: 9 # Only run on paths, that get checked by the clippy_dev tool 10 paths: 11 - 'CHANGELOG.md' 12 - 'README.md' 13 - '**.stderr' 14 - '**.rs' 15 16env: 17 RUST_BACKTRACE: 1 18 CARGO_INCREMENTAL: 0 19 20jobs: 21 clippy_dev: 22 runs-on: ubuntu-latest 23 24 steps: 25 # Setup 26 - name: Checkout 27 uses: actions/checkout@v3 28 29 # Run 30 - name: Build 31 run: cargo build --features deny-warnings 32 working-directory: clippy_dev 33 34 - name: Test update_lints 35 run: cargo dev update_lints --check 36 37 - name: Test fmt 38 run: cargo dev fmt --check 39 40 - name: Test cargo dev new lint 41 run: | 42 cargo dev new_lint --name new_early_pass --pass early 43 cargo dev new_lint --name new_late_pass --pass late 44 cargo check 45 git reset --hard HEAD 46 47 # These jobs doesn't actually test anything, but they're only used to tell 48 # bors the build completed, as there is no practical way to detect when a 49 # workflow is successful listening to webhooks only. 50 # 51 # ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB! 52 53 end-success: 54 name: bors dev test finished 55 if: github.event.pusher.name == 'bors' && success() 56 runs-on: ubuntu-latest 57 needs: [clippy_dev] 58 59 steps: 60 - name: Mark the job as successful 61 run: exit 0 62 63 end-failure: 64 name: bors dev test finished 65 if: github.event.pusher.name == 'bors' && (failure() || cancelled()) 66 runs-on: ubuntu-latest 67 needs: [clippy_dev] 68 69 steps: 70 - name: Mark the job as a failure 71 run: exit 1