A GitHub Action for installing the helm/chart-testing CLI tool.
- A GitHub repo containing a directory with your Helm charts (e.g:
- A workflow YAML file in your
.github/workflowsdirectory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file
For more information on inputs, see the API Documentation
version: The chart-testing version to install (default:
Create a workflow (eg:
name: Lint and Test Charts on: pull_request jobs: lint-test: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up Helm uses: azure/setup-helm@v1 with: version: v3.7.2 - uses: actions/setup-python@v2 with: python-version: 3.7 - name: Set up chart-testing uses: email@example.com - name: Run chart-testing (list-changed) id: list-changed run: | changed=$(ct list-changed) if [[ -n "$changed" ]]; then echo "::set-output name=changed::true" fi - name: Run chart-testing (lint) run: ct lint - name: Create kind cluster uses: firstname.lastname@example.org if: steps.list-changed.outputs.changed == 'true' - name: Run chart-testing (install) run: ct install
Upgrading from v1.x.x
v2.0.0 is a major release with breaking changes.
The action no longer wraps the chart-testing tool but simply installs it.
It is no longer run in a Docker container.
ct options are now directly available without the additional abstraction layer.
Code of conduct
Participation in the Helm community is governed by the Code of Conduct.