File tree Expand file tree Collapse file tree 2 files changed +34
-58
lines changed Expand file tree Collapse file tree 2 files changed +34
-58
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,17 +20,44 @@ concurrency:
2020
2121jobs :
2222 test-all :
23- name : Test GH
23+ name : Run all tests
2424 runs-on : ubuntu-latest
25+ strategy :
26+ fail-fast : false
27+ max-parallel : 2
28+ matrix :
29+ k8s-version : [v1.27.0, latest]
2530 steps :
26- - name : Set up Go 1.x
27- uses : actions/setup-go@v5
31+ - name : Check out code into the Go module directory
32+ uses : actions/checkout@v4
2833 with :
29- go-version : 1.23.3
30- - name : Check out code
31- 34+ fetch-depth : 0
35+ - name : Set up Go
36+ uses : actions/setup-go@v5
3237 with :
33- fetch-depth : 0
38+ go-version-file : go.mod
39+ - name : Resolve Kubernetes version
40+ id : resolve-k8s-version
41+ run : |
42+ k8s_version=${{ matrix.k8s-version }}
43+ if [ "${k8s_version}" = "latest" ]; then
44+ k8s_version=$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/kubernetes/kubernetes/releases/latest | grep -oE 'tag/v[0-9]+\.[0-9]+\.[0-9]+' | cut -d'/' -f2)
45+ echo "Resolved latest k8s version to: $k8s_version"
46+ fi
47+ echo "k8s_version=$k8s_version" >> $GITHUB_ENV
48+ - name : start minikube(k8s version ${{ env.k8s_version }})
49+ uses : medyagh/setup-minikube@latest
50+ with :
51+ kubernetes-version : ${{ env.k8s_version }}
52+ driver : docker
53+ start : true
54+ cpus : 3
55+ memory : 8192m
56+ - name : Verify env
57+ run : |
58+ kind version
59+ kubectl version
60+ go version
3461 - name : Install Carvel Tools
3562 run : ./hack/install-deps.sh
3663 - name : Run Tests
4673
4774 ./hack/verify-no-dirty-files.sh
4875
49- minikube start --driver=docker --kubernetes-version="1.20.15"
5076 eval $(minikube docker-env --shell=bash)
5177
5278 export KAPPCTRL_E2E_SECRETGEN_CONTROLLER=true
You can’t perform that action at this time.
0 commit comments