{"id":15062515,"url":"https://github.com/helm/chart-testing-action","last_synced_at":"2025-04-10T23:26:42.690Z","repository":{"id":37733040,"uuid":"223435665","full_name":"helm/chart-testing-action","owner":"helm","description":"A GitHub Action to lint and test Helm charts","archived":false,"fork":false,"pushed_at":"2024-10-25T01:11:44.000Z","size":97,"stargazers_count":250,"open_issues_count":20,"forks_count":71,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-10-29T15:47:49.652Z","etag":null,"topics":["actions","chart-testing","charts","ci-cd","github-actions","helm","kubernetes","lint"],"latest_commit_sha":null,"homepage":"https://github.com/helm/chart-testing","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-22T15:47:43.000Z","updated_at":"2024-10-29T14:52:09.000Z","dependencies_parsed_at":"2023-12-12T09:30:47.777Z","dependency_job_id":"896fbfa9-add3-405f-88bc-8d64ecd4899c","html_url":"https://github.com/helm/chart-testing-action","commit_stats":{"total_commits":81,"total_committers":23,"mean_commits":"3.5217391304347827","dds":0.7407407407407407,"last_synced_commit":"5aa1c68405a43a57240a9b2869379324b2bec0fc"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helm%2Fchart-testing-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helm%2Fchart-testing-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helm%2Fchart-testing-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helm%2Fchart-testing-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helm","download_url":"https://codeload.github.com/helm/chart-testing-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248313913,"owners_count":21082943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","chart-testing","charts","ci-cd","github-actions","helm","kubernetes","lint"],"created_at":"2024-09-24T23:41:51.257Z","updated_at":"2025-04-10T23:26:42.673Z","avatar_url":"https://github.com/helm.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# *chart-testing* Action\n\nA GitHub Action for installing the [helm/chart-testing](https://github.com/helm/chart-testing) CLI tool.\n\n## Usage\n\n### Pre-requisites\n\n1. A GitHub repo containing a directory with your Helm charts (e.g: `charts`)\n1. A workflow YAML file in your `.github/workflows` directory.\n  An [example workflow](#example-workflow) is available below.\n  For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file)\n\n### Inputs\n\nFor more information on inputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#input)\n\n- `version`: The chart-testing version to install (default: `3.12.0`)\n- `yamllint_version`: The `yamllint` version to install (default: `1.33.0`)\n- `yamale_version`: The `yamale` version to install (default: `4.0.4`)\n\n### Example Workflow\n\nCreate a workflow (eg: `.github/workflows/lint-test.yaml`):\n\nNote that Helm and Python must be installed.\nThis can be achieved using actions as shown in the example below.\nPython is required because `ct lint` runs [Yamale](https://github.com/23andMe/Yamale) and [yamllint](https://github.com/adrienverge/yamllint) which require Python.\n\n```yaml\nname: Lint and Test Charts\n\non: pull_request\n\njobs:\n  lint-test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v3\n        with:\n          fetch-depth: 0\n\n      - name: Set up Helm\n        uses: azure/setup-helm@v4.2.0\n        with:\n          version: v3.17.0\n\n      - uses: actions/setup-python@v5.3.0\n        with:\n          python-version: '3.x'\n          check-latest: true\n\n      - name: Set up chart-testing\n        uses: helm/chart-testing-action@v2.7.0\n\n      - name: Run chart-testing (list-changed)\n        id: list-changed\n        run: |\n          changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})\n          if [[ -n \"$changed\" ]]; then\n            echo \"changed=true\" \u003e\u003e \"$GITHUB_OUTPUT\"\n          fi\n\n      - name: Run chart-testing (lint)\n        if: steps.list-changed.outputs.changed == 'true'\n        run: ct lint --target-branch ${{ github.event.repository.default_branch }}\n\n      - name: Create kind cluster\n        if: steps.list-changed.outputs.changed == 'true'\n        uses: helm/kind-action@v1.12.0\n\n      - name: Run chart-testing (install)\n        if: steps.list-changed.outputs.changed == 'true'\n        run: ct install --target-branch ${{ github.event.repository.default_branch }}\n```\n\nThis uses [`helm/kind-action`](https://www.github.com/helm/kind-action) GitHub Action to spin up a [kind](https://kind.sigs.k8s.io/) Kubernetes cluster,\nand [`helm/chart-testing`](https://www.github.com/helm/chart-testing) to lint and test your charts on every pull request.\n\n## Upgrading from v1.x.x\n\nv2.0.0 is a major release with breaking changes.\nThe action no longer wraps the chart-testing tool but simply installs it.\nIt is no longer run in a Docker container.\nAll `ct` options are now directly available without the additional abstraction layer.\n\n## Code of conduct\n\nParticipation in the Helm community is governed by the [Code of Conduct](CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelm%2Fchart-testing-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelm%2Fchart-testing-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelm%2Fchart-testing-action/lists"}