Skip to content

chore(deps): update dependency chart-testing to v3.15.0 (main) #1335

chore(deps): update dependency chart-testing to v3.15.0 (main)

chore(deps): update dependency chart-testing to v3.15.0 (main) #1335

Workflow file for this run

name: Lint Charts
on:
pull_request:
branches:
- main
- release-[0-9]+.[0-9]+
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
lint-chart:
name: Lint Metadata
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1
with:
version: v4.3.0
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
with:
python-version: 3.14
# TODO: switch back to a tagged release once chart-testing-action cuts one that supports ct v3.15.0
- name: Set up chart-testing
uses: helm/chart-testing-action@4b9e8ccd8d870c94667aec5e4ef54cc49934cd85 # main (post-v2.8.0)
with:
version: '3.15.0'
yamllint_version: '1.37.1'
yamale_version: '6.0.0'
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch "${{ github.event.pull_request.base.ref }}")
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Add Helm Repositories
if: steps.list-changed.outputs.changed == 'true'
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: |
ct lint \
--debug \
--config ct-lint.yaml \
--target-branch "${{ github.event.pull_request.base.ref }}"