Skip to content

Commit a086951

Browse files
committed
chore: update CI configuration for Go and Kubebuilder setup
1 parent b855a68 commit a086951

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- master
1111

1212
env:
13+
# Common versions
1314
GO_VERSION: '1.23'
1415
GOLANGCI_VERSION: 'v1.56'
1516
KIND_VERSION: 'v0.29.0'
@@ -52,9 +53,14 @@ jobs:
5253
restore-keys: ${{ runner.os }}-pkg-
5354
- name: install Kubebuilder
5455
run: |
56+
# Install setup-envtest for managing test binaries
5557
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
58+
59+
# Setup the test environment with the correct Kubernetes version
5660
export KUBEBUILDER_ASSETS=$(setup-envtest use 1.31.x --print path --bin-dir ~/.local/bin)
5761
echo "KUBEBUILDER_ASSETS=$KUBEBUILDER_ASSETS" >> $GITHUB_ENV
62+
63+
# Verify the setup
5864
ls -la $KUBEBUILDER_ASSETS
5965
- name: Run Make test
6066
run: make test

0 commit comments

Comments
 (0)