From e9a75fd48f33e3ffc7c9836fffc4627711347ff2 Mon Sep 17 00:00:00 2001 From: Garry O'Donnell Date: Wed, 13 Mar 2024 16:54:17 +0000 Subject: [PATCH] Add helm chart linting to CI --- .github/workflows/charts.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/charts.yml diff --git a/.github/workflows/charts.yml b/.github/workflows/charts.yml new file mode 100644 index 0000000..2c1c557 --- /dev/null +++ b/.github/workflows/charts.yml @@ -0,0 +1,30 @@ +name: Helm Charts + +on: + push: + pull_request: + +jobs: + lint: + # Deduplicate jobs from pull requests and branch pushes within the same repo. + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository + runs-on: iris-cpu + container: docker.io/library/ubuntu:latest + steps: + - name: Checkout source + uses: actions/checkout@v4.1.1 + with: + fetch-depth: 0 + + - name: Setup Helm + uses: azure/setup-helm@v3.5 + + - name: Setup chart-testing + uses: helm/chart-testing-action@v2.6.1 + + - name: Lint + run: > + ct + lint + --target-branch=${{ github.event.repository.default_branch }} + --validate-maintainers=false