7 # Only run on paths, that get checked by the clippy_dev tool
19 runs-on: ubuntu-latest
22 - name: rust-toolchain
23 uses: actions-rs/toolchain@v1.0.3
26 target: x86_64-unknown-linux-gnu
30 uses: actions/checkout@v2.0.0
33 run: cargo build --features deny-warnings
34 working-directory: clippy_dev
35 - name: Test limit-stderr-length
36 run: cargo dev --limit-stderr-length
37 - name: Test update_lints
38 run: cargo dev update_lints --check
40 run: cargo dev fmt --check
42 # These jobs doesn't actually test anything, but they're only used to tell
43 # bors the build completed, as there is no practical way to detect when a
44 # workflow is successful listening to webhooks only.
46 # ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
49 name: bors dev test finished
50 if: github.event.pusher.name == 'bors' && success()
51 runs-on: ubuntu-latest
55 - name: Mark the job as successful
59 name: bors dev test finished
60 if: github.event.pusher.name == 'bors' && (failure() || cancelled())
61 runs-on: ubuntu-latest
65 - name: Mark the job as a failure