[bazel] Enforce up-to-date lock file in CI (#8860)

The Bazel lock file was missing a few dependencies. This adds a check in
CI that the lock file is up-to-date.
This commit is contained in:
David Vo
2026-05-15 14:54:04 +10:00
committed by GitHub
parent 6ba5734a94
commit f751ca88eb
2 changed files with 330 additions and 0 deletions

View File

@@ -137,6 +137,27 @@ jobs:
path: "*-bazel-lint-fixes.patch"
if: ${{ failure() }}
mod-lock:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Check lockfile
run: bazel mod deps --lockfile_mode=error
- run: bazel mod deps --lockfile_mode=update
if: ${{ failure() }}
- name: Generate diff
run: git diff HEAD > bazel-mod-lock-fixes.patch
if: ${{ failure() }}
- uses: actions/upload-artifact@v7
with:
archive: false
path: "bazel-mod-lock-fixes.patch"
if: ${{ failure() }}
non_robotpy_pregeneration:
name: "Non-RobotPy Pregen"
runs-on: ubuntu-24.04