Skip to content

Commit 2495835

Browse files
authored
chore(ci): add matrix strategy for multi k8s versions and make ENVTES… (#160)
* chore(ci): add matrix strategy for multi k8s versions and make ENVTEST_K8S_VERSION overridable * envtest_k8s_version: [1.23.5, 1.27.1, 1.31.0, 1.32.0]
1 parent 5f6b101 commit 2495835

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
test:
2323
name: Run on Ubuntu
2424
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
envtest_k8s_version: [1.23.5, 1.27.1, 1.31.0, 1.32.0]
2528
steps:
2629
- name: Clone the code
2730
uses: actions/checkout@v4
@@ -35,3 +38,5 @@ jobs:
3538
run: |
3639
go mod tidy
3740
make test
41+
env:
42+
ENVTEST_K8S_VERSION: ${{ matrix.envtest_k8s_version }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Image URL to use all building/pushing image targets
22
IMG ?= tensorfusion/tensor-fusion-operator:latest
33
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
4-
ENVTEST_K8S_VERSION = 1.31.0
4+
ENVTEST_K8S_VERSION ?= 1.31.0
55

66
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
77
ifeq (,$(shell go env GOBIN))

0 commit comments

Comments
 (0)