...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "common",
5 srcs = [
6 "actor.go",
7 "evaluate.go",
8 "methods.go",
9 "predicateresult.go",
10 "regexp.go",
11 "result.go",
12 "trigger.go",
13 ],
14 importpath = "edge-infra.dev/pkg/f8n/devinfra/repo/owners/policybot/policy/common",
15 visibility = ["//visibility:public"],
16 deps = [
17 "//pkg/f8n/devinfra/repo/owners/policybot/pull",
18 "@com_github_pkg_errors//:errors",
19 ],
20)
21
22go_test(
23 name = "common_test",
24 srcs = [
25 "actor_test.go",
26 "methods_test.go",
27 "regexp_test.go",
28 "trigger_test.go",
29 ],
30 embed = [":common"],
31 deps = [
32 "//pkg/f8n/devinfra/repo/owners/policybot/pull",
33 "//pkg/f8n/devinfra/repo/owners/policybot/pull/pulltest",
34 "@com_github_stretchr_testify//assert",
35 "@com_github_stretchr_testify//require",
36 "@in_gopkg_yaml_v2//:yaml_v2",
37 ],
38)
View as plain text