File tree 1 file changed +5
-11
lines changed 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,6 @@ commands:
29
29
- go-build-cache-{{ .Branch }}-{{ .Revision }}
30
30
- go-build-cache-{{ .Branch }}-
31
31
- go-build-cache-
32
- install-controller-tools :
33
- steps :
34
- - run :
35
- name : Install setup-envtest
36
- command : go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
37
- - run :
38
- name : install required tools
39
- command : source <(setup-envtest use -p env)
40
-
41
32
jobs :
42
33
scan :
43
34
resource_class : small
@@ -67,11 +58,14 @@ jobs:
67
58
environment :
68
59
# we re-use the Go build cache as our lint-cache too.
69
60
GOLANGCI_LINT_CACHE : /home/circleci/.cache/go-build
70
- - install-controller-tools
61
+ # install required tools for kubebuilder tests.
62
+ - run :
63
+ name : Install setup-envtest
64
+ command : go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
71
65
# we're not using the go/test command from the Go orb because that uses `-count=1` as an argument.
72
66
# That means all tests are run every time, instead of honoring the cache.
73
67
- run :
74
- command : go test -race ./...
68
+ command : source <(setup-envtest use -p env) && go test -race ./...
75
69
- save-build-cache
76
70
77
71
release :
You can’t perform that action at this time.
0 commit comments