From: Yann Dirson Date: Mon, 5 Feb 2024 09:38:19 +0000 (+0100) Subject: ci: new check job for missing Cargo.lock updates. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=381a2d08f179bed1cff744e63fe07d158d3a7c4a;p=xen-guest-agent.git ci: new check job for missing Cargo.lock updates. This could have been a larger check to make sure build introduces no diffs, but our reliance on a crate patch for FreeBSD makes this too messy. At least the common case of forgetting Cargo.lock will fail the pipeline early. Signed-off-by: Yann Dirson --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d48b649..8afe83a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,9 @@ variables: stage: check script: - cargo build ${FEATURES} ${CARGO_FLAGS} + # make sure build introduces no diffs + # FIXME cannot be set there yet since we need a patch for FreeBSD + #- git diff --exit-code .debian-build-template: extends: @@ -93,6 +96,15 @@ clippy: script: - cargo clippy +cargo-lock: + stage: check + extends: + - .debian-build-template + script: + - cargo tree + # if Cargo.lock was not commited, this will show here + - git diff --exit-code + ## common defs .featurematrix: