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 14f1838 commit 818b428
Show file tree
Hide file tree
Showing 16 changed files with 73 additions and 65 deletions.
13 changes: 13 additions & 0 deletions .aspect/workflows/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ workspaces:
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
5 changes: 3 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,6 +55,7 @@ jobs:
a=(
.
e2e/bzlmod
e2e/gyp_no_install_script
e2e/js_image_docker
e2e/js_image_oci
e2e/js_run_devserver
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.

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

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

19 changes: 19 additions & 0 deletions e2e/vendored_node/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")

rules_js_dependencies()

load(
"@aspect_bazel_lib//lib:repositories.bzl",
"register_copy_directory_toolchains",
"register_copy_to_directory_toolchains",
"register_coreutils_toolchains",
"register_tar_toolchains",
"register_yq_toolchains",
)

register_copy_directory_toolchains()

register_copy_to_directory_toolchains()

register_coreutils_toolchains()

register_tar_toolchains()

register_yq_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()
Expand Down
1 change: 1 addition & 0 deletions e2e/webpack_devserver/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bazel_dep(name = "aspect_bazel_lib", version = "2.7.0")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "rules_go", version = "0.46.0")
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
Expand Down
1 change: 1 addition & 0 deletions e2e/webpack_devserver_esm/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bazel_dep(name = "aspect_bazel_lib", version = "2.7.0")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "rules_go", version = "0.46.0")
bazel_dep(name = "aspect_rules_js", version = "0.0.0")
Expand Down
19 changes: 19 additions & 0 deletions e2e/worker/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,25 @@ nodejs_register_toolchains(
node_version = "14.20.0",
)

load(
"@aspect_bazel_lib//lib:repositories.bzl",
"register_copy_directory_toolchains",
"register_copy_to_directory_toolchains",
"register_coreutils_toolchains",
"register_tar_toolchains",
"register_yq_toolchains",
)

register_copy_directory_toolchains()

register_copy_to_directory_toolchains()

register_coreutils_toolchains()

register_tar_toolchains()

register_yq_toolchains()

load("@bazel_features//:deps.bzl", "bazel_features_deps")

bazel_features_deps()
2 changes: 1 addition & 1 deletion js/private/test/image/checksum.expected
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
6477f43b8663b593b7eb3ba50f7b617849eca2d2ecccdba37a92b0c9faf1226c js/private/test/image/cksum_app.tar
4a332bdfbc2c68da46ff8851a060c04c5e0328c07540c0da992d95e7b0e79ffa js/private/test/image/cksum_app.tar
813d54ae63067f19103e13f616726ff1f32cf8d51e27789b8d31415300f0a69e js/private/test/image/cksum_node_modules.tar
2 changes: 1 addition & 1 deletion js/private/test/image/custom_owner_app.listing
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.ru
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image
-r-xr-xr-x 100/0 24130 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin
-r-xr-xr-x 100/0 23948 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin_node_bin
-r-xr-xr-x 100/0 133 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin_node_bin/node
-r-xr-xr-x 100/0 20 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/main.js
2 changes: 1 addition & 1 deletion js/private/test/image/default_app.listing
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.ru
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image
-r-xr-xr-x 0/0 24130 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin
-r-xr-xr-x 0/0 23948 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin_node_bin
-r-xr-xr-x 0/0 133 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin_node_bin/node
-r-xr-xr-x 0/0 20 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/main.js

0 comments on commit 818b428

Please sign in to comment.