Some checks failed
CI / test (ubuntu-latest, linux-x64) (push) Failing after 59s
Docs Pages / deploy (push) Failing after 34s
Copilot Setup Steps / copilot-setup-steps (push) Failing after 37s
CI / test (macos-14, darwin-arm64) (push) Has been cancelled
CI / test (windows-latest, windows) (push) Has been cancelled
73 lines
1.9 KiB
Python
73 lines
1.9 KiB
Python
load("@rules_shell//shell:sh_test.bzl", "sh_test")
|
|
|
|
config_setting(
|
|
name = "linux_x86_64",
|
|
constraint_values = [
|
|
"@platforms//os:linux",
|
|
"@platforms//cpu:x86_64",
|
|
],
|
|
)
|
|
|
|
config_setting(
|
|
name = "linux_aarch64",
|
|
constraint_values = [
|
|
"@platforms//os:linux",
|
|
"@platforms//cpu:aarch64",
|
|
],
|
|
)
|
|
|
|
config_setting(
|
|
name = "darwin_x86_64",
|
|
constraint_values = [
|
|
"@platforms//os:macos",
|
|
"@platforms//cpu:x86_64",
|
|
],
|
|
)
|
|
|
|
config_setting(
|
|
name = "darwin_aarch64",
|
|
constraint_values = [
|
|
"@platforms//os:macos",
|
|
"@platforms//cpu:aarch64",
|
|
],
|
|
)
|
|
|
|
config_setting(
|
|
name = "windows_x86_64",
|
|
constraint_values = [
|
|
"@platforms//os:windows",
|
|
"@platforms//cpu:x86_64",
|
|
],
|
|
)
|
|
|
|
sh_test(
|
|
name = "npm_translate_lock_workspace_test",
|
|
size = "small",
|
|
srcs = ["npm_translate_lock_workspace_test.sh"],
|
|
tags = ["exclusive"],
|
|
args = select({
|
|
":linux_x86_64": ["$(location @bun_linux_x64//:bun)"],
|
|
":linux_aarch64": ["$(location @bun_linux_aarch64//:bun)"],
|
|
":darwin_x86_64": ["$(location @bun_darwin_x64//:bun)"],
|
|
":darwin_aarch64": ["$(location @bun_darwin_aarch64//:bun)"],
|
|
":windows_x86_64": ["$(location @bun_windows_x64//:bun)"],
|
|
"//conditions:default": ["$(location @bun_linux_x64//:bun)"],
|
|
}),
|
|
data = select({
|
|
":linux_x86_64": ["@bun_linux_x64//:bun"],
|
|
":linux_aarch64": ["@bun_linux_aarch64//:bun"],
|
|
":darwin_x86_64": ["@bun_darwin_x64//:bun"],
|
|
":darwin_aarch64": ["@bun_darwin_aarch64//:bun"],
|
|
":windows_x86_64": ["@bun_windows_x64//:bun"],
|
|
"//conditions:default": ["@bun_linux_x64//:bun"],
|
|
}) + [
|
|
"//:repo_runtime_files",
|
|
"//bun:repo_runtime_files",
|
|
"//internal:repo_runtime_files",
|
|
"//js:repo_runtime_files",
|
|
"//npm:repo_runtime_files",
|
|
"//tests:nested_bazel_test.sh",
|
|
],
|
|
env_inherit = ["PATH"],
|
|
)
|