From 0be5255be9ecf73d7b441750560e4b4ffd122371 Mon Sep 17 00:00:00 2001 From: Liang Deng <283304489@qq.com> Date: Mon, 3 Apr 2023 15:56:52 +0800 Subject: [PATCH] feat: lint Helm charts for Artifact Hub (#6758) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Liang Deng <283304489@qq.com> Co-authored-by: Charles-Edouard Brétéché --- .github/workflows/helm-release.yaml | 12 ++++++++++++ .github/workflows/helm-test.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml index 751ea4c8be..36fd40c6a8 100644 --- a/.github/workflows/helm-release.yaml +++ b/.github/workflows/helm-release.yaml @@ -24,6 +24,18 @@ jobs: - name: Run chart-testing (lint) run: ct lint --target-branch=main --check-version-increment=false + linter-artifacthub: + runs-on: ubuntu-latest + container: + image: artifacthub/ah + options: --user root + steps: + - name: Checkout + uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 + - name: Run ah lint + working-directory: ./charts/ + run: ah lint + create-release: runs-on: ubuntu-latest needs: helm-tests diff --git a/.github/workflows/helm-test.yaml b/.github/workflows/helm-test.yaml index 143b71775f..b65fe9d987 100644 --- a/.github/workflows/helm-test.yaml +++ b/.github/workflows/helm-test.yaml @@ -42,3 +42,15 @@ jobs: - name: Debug failure if: failure() uses: ./.github/actions/kyverno-logs + + linter-artifacthub: + runs-on: ubuntu-latest + container: + image: artifacthub/ah + options: --user root + steps: + - name: Checkout + uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0 + - name: Run ah lint + working-directory: ./charts/ + run: ah lint