@@ -168,28 +168,30 @@ jobs:
168
168
name : docker.tar.gz
169
169
path : docker.tar.gz
170
170
retention-days : 5
171
- helm :
172
- name : Helm chart
171
+
172
+ helm-lint :
173
+ name : Helm chart lint
173
174
runs-on : ubuntu-latest
174
175
needs :
175
176
- changes
176
- - build
177
177
if : |
178
178
(needs.changes.outputs.charts == 'true') || (needs.changes.outputs.baseimage == 'true')
179
179
180
- strategy :
181
- matrix :
182
- k8s : [v1.26.6, v1.27.3, v1.28.0, v1.29.0]
183
-
184
180
steps :
185
181
- name : Checkout
186
182
uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
183
+ with :
184
+ fetch-depth : 0
187
185
188
- - name : Setup Go
189
- uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
186
+ - name : Set up Helm
187
+ uses : azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
188
+
189
+ - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
190
190
with :
191
- go-version : ${{ needs.build.outputs.golangversion }}
192
- check-latest : true
191
+ python-version : ' 3.x'
192
+
193
+ - name : Set up chart-testing
194
+ uses : helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
193
195
194
196
- name : Install Helm Unit Test Plugin
195
197
run : |
@@ -199,14 +201,8 @@ jobs:
199
201
run : |
200
202
helm unittest charts/ingress-nginx -d
201
203
202
- - name : cache
203
- uses : actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
204
- with :
205
- name : docker.tar.gz
206
-
207
- - name : Lint
208
- run : |
209
- ./build/run-in-docker.sh ./hack/verify-chart-lint.sh
204
+ - name : Run chart-testing (lint)
205
+ run : ct lint --config ./.ct.yaml
210
206
211
207
- name : Run helm-docs
212
208
run : |
@@ -227,6 +223,35 @@ jobs:
227
223
./ah lint -p charts/ingress-nginx || exit 1
228
224
rm -f ./ah ./ah_1.5.0_linux_amd64.tar.gz
229
225
226
+ helm-test :
227
+ name : Helm chart testing
228
+ runs-on : ubuntu-latest
229
+ needs :
230
+ - changes
231
+ - build
232
+ - helm-lint
233
+ if : |
234
+ (needs.changes.outputs.charts == 'true') || (needs.changes.outputs.baseimage == 'true')
235
+
236
+ strategy :
237
+ matrix :
238
+ k8s : [v1.26.6, v1.27.3, v1.28.0, v1.29.0]
239
+
240
+ steps :
241
+ - name : Checkout
242
+ uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
243
+
244
+ - name : Setup Go
245
+ uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
246
+ with :
247
+ go-version : ${{ needs.build.outputs.golangversion }}
248
+ check-latest : true
249
+
250
+ - name : cache
251
+ uses : actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
252
+ with :
253
+ name : docker.tar.gz
254
+
230
255
- name : fix permissions
231
256
run : |
232
257
sudo mkdir -p $HOME/.kube
0 commit comments