File tree 1 file changed +20
-8
lines changed
1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ name: validate
2
2
on :
3
3
workflow_call :
4
4
5
- env :
6
- K8S_VERSION : 1.27.1
7
5
jobs :
8
6
docs :
9
7
name : Check docs are buildable
@@ -60,12 +58,26 @@ jobs:
60
58
- run : make go-mod-tidy
61
59
- run : make BUILDTAGS=kerneldrv
62
60
- run : make test BUILDTAGS=kerneldrv
63
- - name : Install envtest tool and run envtest
64
- run : |
65
- go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
66
- setup-envtest use ${K8S_VERSION}
67
- - run : |
68
- KUBEBUILDER_ASSETS=$(setup-envtest use -i -p path ${K8S_VERSION}) make envtest
69
61
- run : make check-github-actions
70
62
- name : Codecov report
71
63
run : bash <(curl -s https://codecov.io/bash)
64
+
65
+ envtest :
66
+ name : Test APIs using envtest
67
+ runs-on : ubuntu-22.04
68
+ strategy :
69
+ matrix :
70
+ version :
71
+ - 1.26.x
72
+ - 1.27.x
73
+ - 1.28.x
74
+ steps :
75
+ - uses : actions/checkout@v4
76
+ - uses : actions/setup-go@v4
77
+ - name : Install envtest and k8s control plane
78
+ run : |
79
+ go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
80
+ setup-envtest use ${{ matrix.version }}
81
+ - name : Run envtest
82
+ run : |
83
+ KUBEBUILDER_ASSETS=$(setup-envtest use -i -p path ${{ matrix.version }}) make envtest
You can’t perform that action at this time.
0 commit comments