Skip to content

Commit 090b9fe

Browse files
committed
tmp
1 parent 713219b commit 090b9fe

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.circleci/config.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ commands:
2929
- go-build-cache-{{ .Branch }}-{{ .Revision }}
3030
- go-build-cache-{{ .Branch }}-
3131
- 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-
4132
jobs:
4233
scan:
4334
resource_class: small
@@ -67,11 +58,14 @@ jobs:
6758
environment:
6859
# we re-use the Go build cache as our lint-cache too.
6960
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
7165
# we're not using the go/test command from the Go orb because that uses `-count=1` as an argument.
7266
# That means all tests are run every time, instead of honoring the cache.
7367
- run:
74-
command: go test -race ./...
68+
command: source <(setup-envtest use -p env) && go test -race ./...
7569
- save-build-cache
7670

7771
release:

0 commit comments

Comments
 (0)