Skip to content

Commit f15fae3

Browse files
committed
ci: test across several k8s versions
1 parent 5ec3f83 commit f15fae3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/tests.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ jobs:
108108

109109
apply:
110110
runs-on: ubuntu-latest
111+
strategy:
112+
matrix:
113+
include:
114+
- node_image: kindest/node:v1.32.2@sha256:f226345927d7e348497136874b6d207e0b32cc52154ad8323129352923a3142f
115+
- node_image: kindest/node:v1.31.6@sha256:28b7cbb993dfe093c76641a0c95807637213c9109b761f1d422c2400e22b8e87
116+
- node_image: kindest/node:v1.30.10@sha256:4de75d0e82481ea846c0ed1de86328d821c1e6a6a91ac37bf804e5313670e507
117+
111118
steps:
112119
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
113120

@@ -121,6 +128,12 @@ jobs:
121128

122129
- name: Create k8s KinD Cluster
123130
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
131+
with:
132+
# NOTE: default is 0.26.0 https://github.com/helm/kind-action/blob/a1b0e391336a6ee6713a0583f8c6240d70863de3/kind.sh#L21
133+
# so bump this manually
134+
version: v0.27.0
135+
env:
136+
INPUT_NODE_IMAGE: ${{ matrix.node_image }}
124137

125138
- name: Verify installing CRDs via kustomize works
126139
run: make install
@@ -130,6 +143,13 @@ jobs:
130143

131144
CRDs-validation:
132145
runs-on: ubuntu-latest
146+
strategy:
147+
matrix:
148+
include:
149+
- node_image: kindest/node:v1.32.2@sha256:f226345927d7e348497136874b6d207e0b32cc52154ad8323129352923a3142f
150+
- node_image: kindest/node:v1.31.6@sha256:28b7cbb993dfe093c76641a0c95807637213c9109b761f1d422c2400e22b8e87
151+
- node_image: kindest/node:v1.30.10@sha256:4de75d0e82481ea846c0ed1de86328d821c1e6a6a91ac37bf804e5313670e507
152+
133153
steps:
134154
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
135155

@@ -143,6 +163,12 @@ jobs:
143163

144164
- name: Create k8s KinD Cluster
145165
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
166+
with:
167+
# NOTE: default is 0.26.0 https://github.com/helm/kind-action/blob/a1b0e391336a6ee6713a0583f8c6240d70863de3/kind.sh#L21
168+
# so bump this manually
169+
version: v0.27.0
170+
env:
171+
INPUT_NODE_IMAGE: ${{ matrix.node_image }}
146172

147173
- name: Verify installing CRDs via kustomize works
148174
run: make install

0 commit comments

Comments
 (0)