- name: Execute Bazel tests\r
shell: bash\r
run: |\r
- bazel test //:test\r
+ bazel test //:tests\r
# Runs a set of commands using the runners shell\r
- name: Execute build script\r
shell: bash\r
}
)
+test_suite(
+ name = "tests",
+ tests = [
+ "//novactl:tests",
+ "//webhook:tests",
+ "//gateway:tests",
+ "//ratelimiter:tests"
+ ],
+)
+
container_push(
name = "publish",
bundle = ":bundle",
load("@io_bazel_rules_docker//docker/package_managers:download_pkgs.bzl", "download_pkgs")
load("@io_bazel_rules_docker//docker/package_managers:install_pkgs.bzl", "install_pkgs")
-exports_files(["Cargo.toml"])
+test_suite(name = "tests")
rust_binary(
name = "gateway",
binary = ":gateway",
visibility = ["//visibility:public"],
base = "@ubuntu1604//image",
-)
\ No newline at end of file
+)
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@io_bazel_rules_docker//go:image.bzl", "go_image")
+test_suite(name = "tests")
+
go_library(
name = "novactl_lib",
srcs = ["main.go"],
name = "image",
embed = [":novactl_lib"],
visibility = ["//visibility:public"],
-)
\ No newline at end of file
+)
load("//cargo:crates.bzl", "all_crate_deps", "crate_deps")
load("@io_bazel_rules_docker//rust:image.bzl", "rust_image")
-exports_files(["Cargo.toml"])
+test_suite(name = "tests")
cargo_build_script(
name = "build_script",
srcs = ["build.rs"],
build_script_env = {
"PROTOC": "$(location @com_google_protobuf//:protoc)",
- "PROTO": "$(location //ratelimiter/proto:nova.ratelimit.v1.proto)"
},
data = [
"//ratelimiter/proto:nova.ratelimit.v1.proto",
load("//cargo:crates.bzl", "all_crate_deps")
load("@io_bazel_rules_docker//rust:image.bzl", "rust_image")
-exports_files(["Cargo.toml"])
+test_suite(name = "tests")
rust_binary(
name = "webhook",
srcs = glob(["src/**"]),
deps = all_crate_deps(),
visibility = ["//visibility:public"],
-)
\ No newline at end of file
+)