Skip to content

Try small matrix

Try small matrix #1

Workflow file for this run

name: Kubernetes Version Compatibility Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- "1.28.x"
- "1.27.x"
- "1.26.x"
# - "1.25.x"
# - "1.24.x"
# - "1.23.x"
# - "1.22.x"
# - "1.21.x"
# - "1.20.x"
# - "1.19.x"
# - "1.17.x"
# - "1.16.x"
# - "1.15.x"
# - "1.14.x"
# - "1.13.x"
# - "1.12.x"
# - "1.11.x"
# - "1.10.x"
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Test
run: UPSTREAM_KUBEBUILDER_ASSETS=$(go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use -p path ${{ matrix.version }}) KUBEBUILDER_ASSETS=$(go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use -p path 1.28.x) go test -v ./internal/controllers/reconciliation