mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Have the CI check the lockfile isn't stale
Prevents a commit review from passing, yet then the next commit 'adding' 100 new dependencies.
This commit is contained in:
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
@@ -28,6 +28,14 @@ jobs:
|
|||||||
- name: Run Clippy
|
- name: Run Clippy
|
||||||
run: cargo +${{ steps.nightly.outputs.version }} clippy --all-features --all-targets -- -D warnings -A clippy::items_after_test_module
|
run: cargo +${{ steps.nightly.outputs.version }} clippy --all-features --all-targets -- -D warnings -A clippy::items_after_test_module
|
||||||
|
|
||||||
|
# Also verify the lockfile isn't dirty
|
||||||
|
# This happens when someone edits a Cargo.toml yet doesn't do anything
|
||||||
|
# which causes the lockfile to be updated
|
||||||
|
# The above clippy run will cause it to be updated, so checking there's
|
||||||
|
# no differences present now performs the desired check
|
||||||
|
- name: Verify lockfile
|
||||||
|
run: git diff | wc -l | grep -x "0"
|
||||||
|
|
||||||
deny:
|
deny:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user