ci: pin bazel version to 7.5.0, and require up-to-date lockfile for CI build

Bazel 7 is currently in maintenance and supported to the end of 2026.

The CI build should require an up-to-date lockfile so that we can try
to catch before merging if Bazel dep changes are made without the
corresponding lockfile change.
This commit is contained in:
John Bartholomew 2025-03-12 20:10:24 +00:00
parent bc787d68ca
commit 1f986a65f3
3 changed files with 1541 additions and 143 deletions

1
.bazelversion Normal file
View File

@ -0,0 +1 @@
7.5.0

View File

@ -61,8 +61,8 @@ jobs:
~/.cache/bazel ~/.cache/bazel
~/.cache/bazelisk ~/.cache/bazelisk
key: ${{ runner.os }}-bazel-cache key: ${{ runner.os }}-bazel-cache
- run: bazel build //... - run: bazelisk build --lockfile_mode=error //...
- run: bazel test //... - run: bazelisk test --lockfile_mode=error //...
all: all:
name: Check all name: Check all

File diff suppressed because it is too large Load Diff