Skip to content

Commit a333551

Browse files
committed
Test with Bazel 8.x and 9.x
1 parent 1caaa92 commit a333551

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ jobs:
2727
- name: Check generated Bazel rules
2828
run: mise r gen-bazel-rules && git diff --quiet --exit-code
2929
bazel:
30-
name: Bazel (${{ matrix.os }})
30+
name: Bazel (${{ matrix.os }}, ${{ matrix.bazel }})
3131
strategy:
3232
fail-fast: false
3333
matrix:
34+
bazel: [8.x, 9.x]
3435
os: [macOS, Linux]
3536
include:
3637
- os: macOS
@@ -44,14 +45,15 @@ jobs:
4445
runs-on: ${{ matrix.runs-on }}
4546
container: ${{ matrix.container }}
4647
env:
48+
USE_BAZEL_VERSION: ${{ matrix.bazel }}
4749
CC: ${{ matrix.cc }}
4850
steps:
4951
- uses: actions/checkout@master
5052
- uses: bazel-contrib/setup-bazel@0.15.0
5153
with:
5254
bazelisk-version: 1.x
5355
bazelisk-cache: true
54-
disk-cache: bazel-${{ matrix.os }}
56+
disk-cache: bazel-${{ matrix.os }}-${{ matrix.bazel }}
5557
repository-cache: true
5658
- name: Scan
5759
run: bazel run //:periphery -- scan --bazel --quiet --strict --baseline baselines/${{ matrix.baseline }}

0 commit comments

Comments
 (0)