You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use local actions/envtest to setup envtest.
The envtest action downloads the envtest binaries for a given version
inside a container and moves them to the host. The binaries also
include the setup-envtest binary. The env var KUBEBUILDER_ASSETS is
also set to the directory containing the envtest binaries.
The cache in /github/home/.cache populated when installing setup-envtest
causes the builds to fail in `make test` target due to the cached go
build files, maybe due to some incompatibilities. Deleting them at the
end of the action helps avoid affecting other build steps in the
workflow.
Since the run-test action runs in a container, the host $PATH is not
passed to the test container. The ENV directive in Dockerfile is used to
append the PATH with envtest binary path. This helps avoid redownload of
the envtest binaries when it's not found in the path via the Makefile
targets.
Signed-off-by: Sunny <darkowlzz@protonmail.com>
0 commit comments