File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ commands:
29
29
- go-build-cache-{{ .Branch }}-{{ .Revision }}
30
30
- go-build-cache-{{ .Branch }}-
31
31
- go-build-cache-
32
-
33
32
jobs :
34
33
scan :
35
34
resource_class : small
62
61
# we're not using the go/test command from the Go orb because that uses `-count=1` as an argument.
63
62
# That means all tests are run every time, instead of honoring the cache.
64
63
- run :
65
- command : go test -race ./...
64
+ command : |
65
+ # install required tools for kubebuilder tests.
66
+ go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
67
+ source <(setup-envtest use -p env)
68
+ go test -race ./...
66
69
- save-build-cache
67
70
68
71
release :
Original file line number Diff line number Diff line change 5
5
- Install Kubebuilder from your package manager of choice
6
6
- Install setup-envtest with Go: ` go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest `
7
7
- Install the required tools: ` setup-envtest use `
8
- - Setup the environment: ` setup-envtest use -p | source `
8
+ - Setup the environment: ` setup-envtest use -p env | source `
9
9
10
10
(yes this is not optimal)
11
11
You can’t perform that action at this time.
0 commit comments