Skip to content

Commit def0008

Browse files
committed
chore: test on bazel 9
1 parent 8f2e852 commit def0008

File tree

5 files changed

+40
-24
lines changed

5 files changed

+40
-24
lines changed

.aspect/workflows/config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
# Test the root workspace using "dev dependencies" on Linux only, and with the version in .bazelversion.
2+
# Look in /.github/workflows/ci.yaml for test matrix on other OS and Bazel version
13
# See https://docs.aspect.build/workflows/configuration
24
tasks:
35
- test:
6+
- format:
7+
- buildozer:
48
notifications:
59
github: {}

.bazelci/presubmit.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
---
2-
bazel: 7.1.1
3-
# Note, this will tell the user to do the wrong thing (manually run buildifer)
4-
# See https://github.com/bazelbuild/continuous-integration/issues/1161
5-
buildifier:
6-
version: 6.4.0
7-
# Keep this in sync with the list in .pre-commit-config.yaml
8-
# https://github.com/bazelbuild/buildtools/issues/479 should fix this by giving us a config file
2+
bazel:
3+
- 7.x
4+
- 8.x
5+
- 9.*
96
tasks:
107
ubuntu1804:
118
name: ubuntu1804

.bcr/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
bcr_test_module:
22
module_path: "e2e/smoke"
33
matrix:
4-
bazel: ["7.x", "8.x", "rolling"]
4+
bazel: ["7.x", "8.x", "9.*"]
55
platform: ["debian10", "macos", "ubuntu2004", "windows"]
66
tasks:
77
run_tests:

.github/workflows/ci.yaml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,32 @@ concurrency:
1616
cancel-in-progress: ${{ github.ref_name != 'main' }}
1717

1818
jobs:
19-
test:
20-
uses: bazel-contrib/.github/.github/workflows/[email protected]
21-
with:
22-
folders: '[".", "e2e/headers", "e2e/smoke", "e2e/nodejs_host", "e2e/conflicting_toolchains"]'
23-
# stardoc generated docs fail on diff_test with Bazel 6.4.0 so don't test against it in root repository
24-
exclude: |
25-
[
26-
{"bazelversion": "7.3.1", "os": "ubuntu-latest", folder: "."},
27-
{"bazelversion": "6.4.0", "os": "macos-latest"},
28-
{"bazelversion": "6.4.0", "os": "windows-latest"},
29-
{"bazelversion": "6.4.0", folder: "."},
30-
{"bazelversion": "6.4.0", bzlmodEnabled: true},
31-
{folder: "e2e/conflicting_toolchains", bzlmodEnabled: false}
32-
]
19+
verify:
20+
# Ensures this workflow stays in sync with .bcr/presubmit.yml via bcr-presubmit-sync.
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v5
24+
- uses: bazel-contrib/publish-to-bcr/.github/actions/bcr-presubmit-sync@bcr_ci
25+
continue-on-error: true
26+
with:
27+
github_workflow_path: .github/workflows/ci.yaml
28+
Test:
29+
runs-on: ${{ matrix.platform }}
30+
strategy:
31+
matrix:
32+
platform:
33+
- macos-latest
34+
- ubuntu-22.04
35+
- windows-latest
36+
bazel:
37+
- 7.x
38+
- 8.x
39+
- 9.*
40+
module_path:
41+
- e2e/smoke
42+
steps:
43+
- uses: actions/checkout@v5
44+
- run: bazel test //...
45+
working-directory: ${{ matrix.module_path }}
46+
env:
47+
USE_BAZEL_VERSION: ${{ matrix.bazel }}

e2e/smoke/MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ local_path_override(
44
path = "../..",
55
)
66

7-
bazel_dep(name = "bazel_lib", version = "3.0.0-beta.1", dev_dependency = True)
8-
bazel_dep(name = "bazel_skylib", version = "1.7.1", dev_dependency = True)
7+
bazel_dep(name = "bazel_lib", version = "3.0.0", dev_dependency = True)
8+
bazel_dep(name = "bazel_skylib", version = "1.8.1", dev_dependency = True)
99
bazel_dep(name = "platforms", version = "0.0.10", dev_dependency = True)
1010

1111
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)

0 commit comments

Comments
 (0)