@@ -3,8 +3,8 @@ name: Lint and Test Charts
33on :
44 pull_request :
55 paths :
6- - ' charts/atlantis/**'
7- - ' ct.yaml'
6+ - " charts/atlantis/**"
7+ - " ct.yaml"
88
99defaults :
1010 run :
3030 - uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6
3131 with :
3232 # renovate: datasource=docker depName=python
33- python-version : ' 3.14'
33+ python-version : " 3.14"
3434 check-latest : true
3535
3636 - name : Set up chart-testing
@@ -61,10 +61,45 @@ jobs:
6161 echo "Documentation is up to date." >&2
6262 fi
6363
64- - name : Install helm unittests
64+ # - name: Install helm unittests
65+ # if: steps.list-changed.outputs.changed == 'true'
66+ # run: |
67+ # make unit-test-install
68+
69+ # Required until https://github.com/helm-unittest/helm-unittest/issues/777 is fixed
70+ - name : Install helm-unittest plugin with checksum validation
6571 if : steps.list-changed.outputs.changed == 'true'
72+ shell : bash
6673 run : |
67- make unit-test-install
74+ set -euo pipefail
75+
76+ VERSION="1.0.3" # without v
77+ ARCH="$(uname -m)"
78+
79+ case "${ARCH}" in
80+ x86_64)
81+ ARCH=amd64
82+ SUM="12a9ef198e21166fe5f7487544903d91355b4ea08b1d59220f1543234caf4371"
83+ ;;
84+ aarch64|arm64)
85+ ARCH=arm64
86+ SUM="540aec896945e0e26f443b0d1976d556ce0a3bfa7b10255ed1beecc8d2f7a1cc"
87+ ;;
88+ *)
89+ echo "Unsupported arch: ${ARCH}"
90+ exit 1
91+ ;;
92+ esac
93+
94+ ASSET="helm-unittest-linux-${ARCH}-${VERSION}.tgz"
95+
96+ wget "https://github.com/helm-unittest/helm-unittest/releases/download/v${VERSION}/${ASSET}"
97+ echo "${SUM} ${ASSET}" | sha256sum -c
98+
99+ mkdir -p "$(helm env HELM_PLUGINS)/${ASSET%.*}"
100+ tar -xzf "${ASSET}" -C "$(helm env HELM_PLUGINS)/${ASSET%.*}"
101+
102+ helm plugin list
68103
69104 - name : Run chart-testing (lint)
70105 if : steps.list-changed.outputs.changed == 'true'
73108 --config ct.yaml \
74109 --target-branch ${{ github.event.repository.default_branch }}
75110
76-
77111 - name : Create kind cluster
78112 if : steps.list-changed.outputs.changed == 'true'
79113 uses : helm/kind-action@92086f6be054225fa813e0a4b13787fc9088faab # v1.13.0
0 commit comments