Skip to content

Commit

Permalink
build: Add envtest setup to e2e envrc
Browse files Browse the repository at this point in the history
This enables running envtest based Ginkgo tests more easily in your terminal or
in vscode if you have the direnv plugin installed.
  • Loading branch information
jimmidyson committed Apr 29, 2024
1 parent 3c76b8e commit 224232b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
REPO_ROOT := $(CURDIR)

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

include make/all.mk
1 change: 1 addition & 0 deletions make/dev.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ endif
.PHONY: .envrc.e2e
.envrc.e2e:
gojq --yaml-input --raw-output '.variables | to_entries | map("export \(.key)=\(.value|tostring)")|.[]' < test/e2e/config/caren.yaml | envsubst > .envrc.e2e
setup-envtest use -p env $(ENVTEST_VERSION) >> .envrc.e2e
direnv reload

0 comments on commit 224232b

Please sign in to comment.