@@ -5,6 +5,7 @@ name: run-tests
5
5
6
6
on :
7
7
workflow_call :
8
+ workflow_dispatch :
8
9
9
10
jobs :
10
11
start-runner :
44
45
uses : actions/checkout@v3
45
46
if : github.event.pull_request.head.sha == ''
46
47
lint :
47
- concurrency :
48
- group : lint-golangci-${{ github.ref }}
49
- cancel-in-progress : true
50
48
needs :
51
49
- start-runner
52
50
- smart-checkout
62
60
- name : golangci-lint
63
61
uses : golangci/golangci-lint-action@v2
64
62
with :
65
- version : v1.48.0
63
+ version : v1.52.2
66
64
code-format-check :
67
- concurrency :
68
- group : lint-autoformat-${{ github.ref }}
69
- cancel-in-progress : true
70
65
needs :
71
66
- start-runner
72
67
- smart-checkout
81
76
echo "HOME=/actions-runner" >> $GITHUB_ENV
82
77
- name : Install utilities
83
78
run : |
84
- go install mvdan.cc/gofumpt@v0.3.1
85
- go install github.com/rinchsan/gosimports/cmd/gosimports@v0.1.5
79
+ go install mvdan.cc/gofumpt@v0.5.0
80
+ go install github.com/rinchsan/gosimports/cmd/gosimports@v0.3.8
86
81
- name : format all files with auto-formatter
87
82
run : bash ./.github/scripts/format-all-go-code.sh "$PWD"
88
83
- name : Check repository diff
@@ -107,12 +102,12 @@ jobs:
107
102
export HOME=/actions-runner
108
103
echo "HOME=/actions-runner" >> $GITHUB_ENV
109
104
110
- go install sigs.k8s.io/kind@v0.17 .0
105
+ go install sigs.k8s.io/kind@v0.21 .0
111
106
112
- curl -LO https://dl.k8s.io/release/v1.25.0 /bin/linux/amd64/kubectl
107
+ curl -LO https://dl.k8s.io/release/v1.29.1 /bin/linux/amd64/kubectl
113
108
chmod +x ./kubectl
114
109
115
- HELM_PKG="helm-v3.10 .3-linux-amd64.tar.gz"
110
+ HELM_PKG="helm-v3.13 .3-linux-amd64.tar.gz"
116
111
curl -LO https://get.helm.sh/"${HELM_PKG}"
117
112
tar -zxvf "${HELM_PKG}"
118
113
mv ./linux-amd64/helm .
@@ -138,13 +133,13 @@ jobs:
138
133
# This installs kube-apiserver and etcd binaries for `medium`
139
134
# class tests. Refer to the writing tests docs for more info.
140
135
make envtest
141
- KUBEBUILDER_ASSETS=$(./bin/setup-envtest use 1.26 -p path)
136
+ KUBEBUILDER_ASSETS=$(./bin/setup-envtest use 1.29 -p path)
142
137
echo "KUBEBUILDER_ASSETS=$KUBEBUILDER_ASSETS" >> $GITHUB_ENV
143
138
- name : setup-k8s-cluster
144
139
run : |
145
140
kind delete cluster
146
141
kind create cluster \
147
- --image=kindest/node:v1.25.3 @sha256:cd248d1438192f7814fbca8fede13cfe5b9918746dfa12583976158a834fd5c5 \
142
+ --image=kindest/node:v1.29.1 @sha256:a0cc28af37cf39b019e2b448c54d1a3f789de32536cb5a5db61a49623e527144 \
148
143
--config=./e2e/kind-cluster-config.yaml
149
144
kubectl wait --timeout=5m --for=condition=ready node -l worker=true
150
145
- name : build-operator-image
0 commit comments