Skip to content

Merge pull request #635 from pascaliske/renovate/sissbruecker-linkdin… #1929

Merge pull request #635 from pascaliske/renovate/sissbruecker-linkdin…

Merge pull request #635 from pascaliske/renovate/sissbruecker-linkdin… #1929

Workflow file for this run

name: Test Charts
on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
- '**/README.md.tmpl'
pull_request:
paths-ignore:
- '**/README.md'
- '**/README.md.tmpl'
jobs:
test:
name: Test Charts
runs-on: ubuntu-latest
steps:
# checkout
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
# prepare
- uses: actions/setup-python@v5
with:
python-version: 3.7
# setup helm
- uses: azure/setup-helm@v3.5
# setup chart testing
- uses: helm/chart-testing-action@v2.6.1
# check if charts changed
- name: Check if charts changed
id: list-changed
run: |
[ -n "$(ct list-changed)" ] && echo "changed=true" >> $GITHUB_OUTPUT || exit 0
# setup kind cluster
- uses: helm/kind-action@v1.10.0
if: steps.list-changed.outputs.changed == 'true'
# lint charts
- name: Lint charts
run: |
ct lint --config .ct/ct-lint.yml --all
# test charts
- name: Test charts
if: steps.list-changed.outputs.changed == 'true'
run: |
ct install --config .ct/ct-install.yml