|
|
@@ -203,6 +203,22 @@ jobs:
|
|
|
if: steps.filter.outputs.has_code == 'true'
|
|
|
run: df -h
|
|
|
|
|
|
+ - name: Verify MODULE.bazel.lock
|
|
|
+ if: steps.filter.outputs.has_code == 'true'
|
|
|
+ run: |
|
|
|
+ exit_code=0
|
|
|
+ bazelisk mod deps --lockfile_mode=error || exit_code=$?
|
|
|
+ if (( $exit_code != 0 )); then
|
|
|
+ bazelisk mod deps --lockfile_mode=update
|
|
|
+ echo "MODULE.bazel.lock is out of date! Use below file for update."
|
|
|
+ echo "Platforms may require merging output, for example by applying"
|
|
|
+ echo "an update, re-running triggers, and applying the next update."
|
|
|
+ echo "============================================================"
|
|
|
+ cat MODULE.bazel.lock
|
|
|
+ echo "============================================================"
|
|
|
+ exit 1
|
|
|
+ fi
|
|
|
+
|
|
|
# Build and run all targets on branch pushes to ensure we always have a
|
|
|
# clean tree. We don't expect this to be an interactive path and so don't
|
|
|
# optimize the latency of this step.
|