chore: start testing on Bazel 8

This commit is contained in:
Alex Eagle 2024-10-25 08:21:50 -07:00
parent 1e45f06e06
commit 59a96c75b5
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,10 @@ bcr_test_module:
module_path: "e2e/smoke"
matrix:
platform: ["debian10", "macos", "ubuntu2004", "windows"]
bazel: ["7.x", "6.x"]
bazel:
- 6.x
- 7.x
- last_rc # TODO(alexeagle): change to 8.x after release
tasks:
run_tests:
name: "Run test module"

View File

@ -27,6 +27,7 @@ jobs:
v=$(head -n 1 .bazelversion)
m=${v::1}
a=(
"major:8, version:\"last_rc\""
"major:$m, version:\"$v\""
"major:6, version:\"6.5.0\""
)
@ -138,7 +139,6 @@ jobs:
- name: Verify bcr patches
if: matrix.folder == '.' && matrix.bzlmod == '1' && matrix.os == 'ubuntu' && matrix.bazel-version.major != '6'
run: patch --dry-run -p1 < .bcr/patches/*.patch
# For branch protection settings, this job provides a "stable" name that can be used to gate PR merges
# on "all matrix jobs were successful".
conclusion:
@ -147,14 +147,12 @@ jobs:
if: always()
steps:
- uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # v3.0.3
# Note: possible conclusion values:
# https://github.com/technote-space/workflow-conclusion-action/blob/main/src/constant.ts
- name: report success
if: ${{ env.WORKFLOW_CONCLUSION == 'success' }}
working-directory: /tmp
run: echo ${{ env.WORKFLOW_CONCLUSION }} && exit 0
- name: report failure
if: ${{ env.WORKFLOW_CONCLUSION == 'failure' }}
working-directory: /tmp