Skip to content

Commit 696120f

Browse files
committed
Use chart testing action v2.7.0 during install
1 parent 16739cf commit 696120f

File tree

1 file changed

+46
-10
lines changed

1 file changed

+46
-10
lines changed

.github/workflows/bootzooka-helm-ci.yaml

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,30 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525

26-
- name: Run chart-testing (lint)
27-
id: ct-lint
28-
uses: helm/chart-testing-action@v2.7.0
26+
- name: Set up Helm
27+
uses: azure/setup-helm@v4.3.0
2928
with:
30-
command: lint
31-
config: .github/helm-ct.yml
29+
version: v3.17.1
30+
31+
- uses: actions/setup-python@v5.3.0
32+
with:
33+
python-version: "3.x"
34+
check-latest: true
35+
36+
- name: Set up chart-testing
37+
uses: helm/chart-testing-action@v2.7.0
38+
39+
- name: Run chart-testing (list-changed)
40+
id: list-changed
41+
run: |
42+
changed=$(ct list-changed --config .github/helm-ct.yml --target-branch ${{ github.event.repository.default_branch }})
43+
if [[ -n "$changed" ]]; then
44+
echo "changed=true" >> "$GITHUB_OUTPUT"
45+
fi
46+
47+
- name: Run chart-testing (lint)
48+
if: steps.list-changed.outputs.changed == 'true'
49+
run: ct lint --config .github/helm-ct.yml --target-branch ${{ github.event.repository.default_branch }}
3250

3351
install-test-chart:
3452
needs:
@@ -55,12 +73,30 @@ jobs:
5573
node_image: kindest/node:${{ matrix.k8s }}
5674
wait: "120s"
5775

58-
- name: Run chart-testing (install)
59-
id: ct-install
60-
uses: helm/chart-testing-action@v1.1.0
76+
- name: Set up Helm
77+
uses: azure/setup-helm@v4.3.0
78+
with:
79+
version: v3.17.1
80+
81+
- uses: actions/setup-python@v5.3.0
6182
with:
62-
command: install
63-
config: .github/helm-ct.yml
83+
python-version: "3.x"
84+
check-latest: true
85+
86+
- name: Set up chart-testing
87+
uses: helm/chart-testing-action@v2.7.0
88+
89+
- name: Run chart-testing (list-changed)
90+
id: list-changed
91+
run: |
92+
changed=$(ct list-changed --config .github/helm-ct.yml --target-branch ${{ github.event.repository.default_branch }})
93+
if [[ -n "$changed" ]]; then
94+
echo "changed=true" >> "$GITHUB_OUTPUT"
95+
fi
96+
97+
- name: Run chart-testing (install)
98+
if: steps.list-changed.outputs.changed == 'true'
99+
run: ct install --config .github/helm-ct.yml --target-branch ${{ github.event.repository.default_branch }}
64100

65101
validate-chart-docs:
66102
needs:

0 commit comments

Comments
 (0)