bazel: lint rust_test targets in clippy workflow

This commit is contained in:
Michael Bolin
2026-04-01 09:14:36 -07:00
parent 75365bf718
commit 940e366603
4 changed files with 27 additions and 9 deletions
+7 -5
View File
@@ -126,13 +126,16 @@ jobs:
with:
target: ${{ matrix.target }}
- name: bazel build --config=clippy //codex-rs/...
- name: bazel build --config=clippy lint targets
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
shell: bash
run: |
# Keep the initial Bazel clippy scope on codex-rs and out of the
# V8 proof-of-concept target for now.
bazel_targets=()
while IFS= read -r target; do
bazel_targets+=("${target}")
done < <(./scripts/list-bazel-clippy-targets.sh)
./.github/scripts/run-bazel-ci.sh \
-- \
build \
@@ -140,8 +143,7 @@ jobs:
--build_metadata=COMMIT_SHA=${GITHUB_SHA} \
--build_metadata=TAG_job=clippy \
-- \
//codex-rs/... \
-//codex-rs/v8-poc:all
"${bazel_targets[@]}"
# Save bazel repository cache explicitly; make non-fatal so cache uploading
# never fails the overall job. Only save when key wasn't hit.