Skip to content

Commit

Permalink
chore: run all e2e tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Apr 6, 2024
1 parent 3ac5b46 commit acbafff
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 62 deletions.
26 changes: 26 additions & 0 deletions .aspect/workflows/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,32 @@ workspaces:
without: true
- delivery:
without: true
e2e/git_dep_metadata:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
without: true
- configure:
without: true
- delivery:
without: true
e2e/gyp_no_install_script:
icon: npm
tasks:
- test:
queue: aspect-medium
- format:
without: true
- buildifier:
without: true
- configure:
without: true
- delivery:
without: true
# rules_docker not compatible with Bazel 7.
# See https://github.com/bazelbuild/bazel/issues/20494#issuecomment-1852401451.
# e2e/js_image_docker:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
branches: [main, 2.x]
pull_request:
branches: [main]
branches: [main, 2.x]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -55,13 +55,17 @@ jobs:
a=(
.
e2e/bzlmod
e2e/git_dep_metadata
e2e/gyp_no_install_script
e2e/js_image_docker
e2e/js_image_oci
e2e/js_run_devserver
e2e/npm_link_package
e2e/npm_link_package-esm
e2e/npm_translate_lock
e2e/npm_translate_lock_auth
e2e/npm_translate_lock_empty
e2e/npm_translate_lock_git+ssh
e2e/npm_translate_lock_multi
e2e/npm_translate_lock_partial_clone
e2e/npm_translate_lock_subdir_patch
Expand Down
2 changes: 2 additions & 0 deletions e2e/gyp_no_install_script/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
bazel_dep(name = "aspect_bazel_lib", version = "2.7.0")
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
bazel_dep(name = "platforms", version = "0.0.8")

local_path_override(
module_name = "aspect_rules_js",
path = "../..",
Expand Down
4 changes: 2 additions & 2 deletions e2e/gyp_no_install_script/snapshots/bzlmod/repositories.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions e2e/gyp_no_install_script/snapshots/wksp/repositories.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions e2e/gyp_no_install_script/snapshots/wksp/segfault-handler_defs.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions e2e/npm_translate_lock/snapshots/wksp/repositories.bzl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/extensions.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _npm_extension_impl(module_ctx):
(registries, npm_auth) = npm_translate_lock_helpers.get_npm_auth(npmrc, module_ctx.path(attr.npmrc), module_ctx.os.environ)

if attr.use_home_npmrc:
home_directory = bazel_lib_utils.home_directory(module_ctx)
home_directory = bazel_lib_utils.get_home_directory(module_ctx)
if home_directory:
home_npmrc_path = "{}/{}".format(home_directory, ".npmrc")
home_npmrc = parse_npmrc(module_ctx.read(home_npmrc_path))
Expand Down
2 changes: 1 addition & 1 deletion npm/private/npm_translate_lock_state.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def _load_npmrc(priv, rctx, npmrc_path):

################################################################################
def _load_home_npmrc(priv, rctx):
home_directory = bazel_lib_utils.home_directory(rctx)
home_directory = bazel_lib_utils.get_home_directory(rctx)
if not home_directory:
# buildifier: disable=print
print("""
Expand Down

0 comments on commit acbafff

Please sign in to comment.