Skip to content

Commit

Permalink
Try CI version matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Nov 16, 2023
1 parent 62c46b7 commit b41b6e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ 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
uses: actions/setup-go@v4
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 ./...

0 comments on commit b41b6e4

Please sign in to comment.