Skip to content

Commit cf33786

Browse files
committed
feat(helm): add helm-unittest support
1 parent 5633311 commit cf33786

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/lint-test.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
type: boolean
1616
helm_version:
1717
description: version of the helm binary
18-
default: v3.8.2
18+
default: v3.18.6
1919
required: false
2020
type: string
2121
kind_kubectl_version:
@@ -42,7 +42,7 @@ jobs:
4242
persist-credentials: false
4343

4444
- name: Set up Helm
45-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
45+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
4646
with:
4747
version: ${{ inputs.helm_version }}
4848

@@ -51,10 +51,13 @@ jobs:
5151
- name: Set up Python
5252
uses: actions/setup-python@v5
5353
with:
54-
python-version: 3.12
54+
python-version: 3.13
5555

5656
- name: Set up chart-testing
57-
uses: helm/chart-testing-action@5f16c27cf7a4fa9c776ff73734df3909b2b65127 # v2.1.0
57+
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
58+
59+
- name: install helm unittest plugin
60+
run: helm plugin install https://github.com/helm-unittest/helm-unittest.git --version 1.0.1
5861

5962
- name: Run chart-testing (list-changed)
6063
id: list-changed

ct.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See https://github.com/helm/chart-testing#configuration
2-
remote: origin
3-
target-branch: main
2+
additional-commands:
3+
- helm unittest --strict --file 'unittests/**/*.yaml' {{ .Path }}
44
chart-dirs:
55
- charts
66
chart-repos:
@@ -10,5 +10,7 @@ chart-repos:
1010
- bitnami=https://charts.bitnami.com/bitnami
1111
- hashicorp=https://helm.releases.hashicorp.com
1212
- minio=https://charts.min.io
13-
helm-extra-args: --timeout 600s
13+
remote: origin
14+
target-branch: main
15+
use-helmignore: true
1416
validate-maintainers: false

0 commit comments

Comments
 (0)