Skip to content

Bump helm/chart-testing-action from 2.3.1 to 2.6.0 #193

Bump helm/chart-testing-action from 2.3.1 to 2.6.0

Bump helm/chart-testing-action from 2.3.1 to 2.6.0 #193

Workflow file for this run

# validate any chart changes under charts directory
name: Chart Lint
env:
HELM_VERSION: v3.8.1
KIND_VERSION: v0.14.0
KIND_NODE_IMAGE: kindest/node:v1.23.4
K8S_VERSION: v1.23.4
DEFAULT_BRANCH: main
on:
push:
pull_request:
paths:
- "charts/**"
jobs:
chart-lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/[email protected]
with:
version: ${{ env.HELM_VERSION }}
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
# yamllint (https://github.com/adrienverge/yamllint) which require Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
architecture: x64
- name: Set up chart-testing
uses: helm/[email protected]
with:
version: v3.6.0
- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run chart-testing (list-changed)
id: list-changed
run: |
# https://github.com/helm/chart-testing-action/issues/25
# if the default branch is not master , the CLI exits with error
changed=$( ct list-changed --target-branch ${{ env.DEFAULT_BRANCH }} )
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint --debug --target-branch=${{ env.DEFAULT_BRANCH }} --check-version-increment=false
- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
with:
wait: 120s
version: ${{ env.KIND_VERSION }}
node_image: ${{ env.KIND_NODE_IMAGE }}
kubectl_version: ${{ env.K8S_VERSION }}
- name: Run chart-testing (install)
run: ct install --debug --target-branch ${{ env.DEFAULT_BRANCH }} --helm-extra-args "--timeout 400s" --helm-extra-set-args "--set persistenceMatchNode=None --set installCRDs=true"