diff --git a/.github/workflows/unit.yaml b/.github/workflows/unit.yaml index 75aace99..2d514c6c 100644 --- a/.github/workflows/unit.yaml +++ b/.github/workflows/unit.yaml @@ -10,10 +10,6 @@ jobs: uses: actions/setup-go@v4 with: go-version: '1.21' - - name: Setup EnvTest - run: go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use --bin-dir /tmp/kubebuilder 1.28.x - name: Test - env: - KUBEBUILDER_ASSETS: /tmp/kubebuilder - run: go test -v ./... + run: KUBEBUILDER_ASSETS=$(go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use -p path 1.28.x) go test -v ./...