Skip to content

Commit

Permalink
build: only run e2e/runfiles on bazel6 when non-bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Oct 17, 2024
1 parent 31bf0e3 commit 9611cbe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ jobs:
major: 6
bzlmod: 0
folder: e2e/gyp_no_install_script
# @bazel/runfiles seems broken with non-bzlmod + bazel7
# https://github.com/bazel-contrib/rules_nodejs/issues/3797
- bazel-version:
major: 7
bzlmod: 0
folder: e2e/runfiles
include:
- bazel-version:
major: 7
Expand Down Expand Up @@ -185,6 +191,13 @@ jobs:
os: macos
config: local
folder: e2e/bzlmod
# @bazel/runfiles seems broken with non-bzlmod + bazel7, so test with bazel6
# https://github.com/bazel-contrib/rules_nodejs/issues/3797
- bazel-version:
major: 6
version: 6.5.0
bzlmod: 0
folder: e2e/runfiles

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
4 changes: 4 additions & 0 deletions examples/runfiles/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ js_test(
":node_modules/@bazel/runfiles",
],
entry_point = "test.js",
target_compatible_with = select({
"@aspect_bazel_lib//lib:bzlmod": [],
"//conditions:default": ["@platforms//:incompatible"],
}),
)

# Path of file must start similar to `test_fixture.md` in order to regression-test a
Expand Down

0 comments on commit 9611cbe

Please sign in to comment.