Skip to content

Commit 224232b

Browse files
committed
build: Add envtest setup to e2e envrc
This enables running envtest based Ginkgo tests more easily in your terminal or in vscode if you have the direnv plugin installed.
1 parent 3c76b8e commit 224232b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
REPO_ROOT := $(CURDIR)
55

66
# Versions for tools that are not managed by devbox.
7-
ENVTEST_VERSION=1.29.x
7+
# The `!` suffix forces checking the remote API server
8+
# for the latest patch version of the specified minor.
9+
ENVTEST_VERSION=1.29.x!
810

911
include make/all.mk

make/dev.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ endif
5050
.PHONY: .envrc.e2e
5151
.envrc.e2e:
5252
gojq --yaml-input --raw-output '.variables | to_entries | map("export \(.key)=\(.value|tostring)")|.[]' < test/e2e/config/caren.yaml | envsubst > .envrc.e2e
53+
setup-envtest use -p env $(ENVTEST_VERSION) >> .envrc.e2e
5354
direnv reload

0 commit comments

Comments
 (0)