github-ci: add check for update to date Cargo.lock.in

After a build, check if Cargo.lock.in and Cargo.lock differ, if so,
Cargo.lock.in needs an update as part of a depedency update.
pull/12685/head
Jason Ish 3 weeks ago committed by Victor Julien
parent 11a589f633
commit 357822c68c

@ -95,3 +95,12 @@ jobs:
# especially without debug feature
- run: cargo clippy
working-directory: rust
- name: Check if Cargo.lock.in is up to date
run: |
cp rust/Cargo.lock rust/Cargo.lock.in
diff=$(git diff rust/Cargo.lock.in)
if [ "${diff}" ]; then
echo "${diff}"
echo "::error ::Cargo.lock.in needs to be updated"
exit 1
fi

Loading…
Cancel
Save