We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b855a68 commit a086951Copy full SHA for a086951
.github/workflows/ci.yaml
@@ -10,6 +10,7 @@ on:
10
- master
11
12
env:
13
+ # Common versions
14
GO_VERSION: '1.23'
15
GOLANGCI_VERSION: 'v1.56'
16
KIND_VERSION: 'v0.29.0'
@@ -52,9 +53,14 @@ jobs:
52
53
restore-keys: ${{ runner.os }}-pkg-
54
- name: install Kubebuilder
55
run: |
56
+ # Install setup-envtest for managing test binaries
57
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
58
+
59
+ # Setup the test environment with the correct Kubernetes version
60
export KUBEBUILDER_ASSETS=$(setup-envtest use 1.31.x --print path --bin-dir ~/.local/bin)
61
echo "KUBEBUILDER_ASSETS=$KUBEBUILDER_ASSETS" >> $GITHUB_ENV
62
63
+ # Verify the setup
64
ls -la $KUBEBUILDER_ASSETS
65
- name: Run Make test
66
run: make test
0 commit comments