Giter Site home page Giter Site logo

broadinstitute / chart-testing-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from helm/chart-testing-action

0.0 2.0 0.0 36 KB

A GitHub Action to lint and test Helm charts

Home Page: https://github.com/helm/chart-testing

License: Apache License 2.0

Shell 83.28% JavaScript 16.72%

chart-testing-action's Introduction

chart-testing Action

A GitHub Action to lint and test Helm charts, using the helm/chart-testing CLI tool.

Usage

Pre-requisites

  1. A GitHub repo containing a directory with your Helm charts (eg: /charts)
  2. Optional: if you want to override the defaults, a chart-testing config file in your GitHub repo (eg. /ct.yaml)
  3. A workflow YAML file in your .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file

Inputs

For more information on inputs, see the API Documentation

  • image: The chart-testing Docker image to use (default: quay.io/helmpack/chart-testing:v2.4.0)
  • config: The path to the config file
  • command: The chart-testing command to run
  • kubeconfig: The path to the kube config file

Example Workflow

Create a workflow (eg: .github/workflows/lint-test.yaml):

name: Lint and Test Charts

on: pull_request

jobs:
  lint-test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v1

      - name: Run chart-testing (lint)
        id: lint
        uses: helm/[email protected]
        with:
          command: lint

      - name: Create kind cluster
        uses: helm/[email protected]
        with:
          install_local_path_provisioner: true
        # Only build a kind cluster if there are chart changes to test.
        if: steps.lint.outputs.changed == 'true'

      - name: Run chart-testing (install)
        uses: helm/[email protected]
        with:
          command: install

This uses @helm/kind-action GitHub Action to spin up a kind Kubernetes cluster, and @helm/chart-testing-action to lint and test your charts on every Pull Request.

Code of conduct

Participation in the Helm community is governed by the Code of Conduct.

chart-testing-action's People

Contributors

davidkarlsen avatar monotek avatar paulczar avatar scottrigby avatar unguiculus avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.