9 # Only run on paths, that get checked by the clippy_dev tool
19 CARGO_UNSTABLE_SPARSE_REGISTRY: true
23 runs-on: ubuntu-latest
28 uses: actions/checkout@v3.0.2
32 run: cargo build --features deny-warnings
33 working-directory: clippy_dev
35 - name: Test update_lints
36 run: cargo dev update_lints --check
39 run: cargo dev fmt --check
41 - name: Test cargo dev new lint
43 cargo dev new_lint --name new_early_pass --pass early
44 cargo dev new_lint --name new_late_pass --pass late
48 # These jobs doesn't actually test anything, but they're only used to tell
49 # bors the build completed, as there is no practical way to detect when a
50 # workflow is successful listening to webhooks only.
52 # ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
55 name: bors dev test finished
56 if: github.event.pusher.name == 'bors' && success()
57 runs-on: ubuntu-latest
61 - name: Mark the job as successful
65 name: bors dev test finished
66 if: github.event.pusher.name == 'bors' && (failure() || cancelled())
67 runs-on: ubuntu-latest
71 - name: Mark the job as a failure