From b41b6e4b6ba21a6625fc6e7b15df7a8d7da15676 Mon Sep 17 00:00:00 2001 From: Jordan Olshevski Date: Thu, 16 Nov 2023 16:37:03 -0600 Subject: [PATCH] Try CI version matrix --- .github/workflows/unit.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit.yaml b/.github/workflows/unit.yaml index 2d514c6c..73bd5bfd 100644 --- a/.github/workflows/unit.yaml +++ b/.github/workflows/unit.yaml @@ -4,6 +4,9 @@ on: [push] jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + version: ["1.28.x", "1.18.x"] # TODO: Expand version matrix steps: - uses: actions/checkout@v3 - name: Set up Go @@ -11,5 +14,5 @@ jobs: with: go-version: '1.21' - name: Test - run: KUBEBUILDER_ASSETS=$(go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use -p path 1.28.x) go test -v ./... + run: KUBEBUILDER_ASSETS=$(go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use -p path ${{ matrix.version }}) go test -v ./...