Merge pull request #680 from pascaliske/renovate/ghcr.io-bastienwirtz… #2046
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
# prepare | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.7 | |
# setup helm | |
- uses: azure/[email protected] | |
# setup chart testing | |
- uses: helm/[email protected] | |
# 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/[email protected] | |
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 |