From 351e0f68c2861407671ec80b6f2f68e3a0802d44 Mon Sep 17 00:00:00 2001 From: jay-bisonai <137759552+jay-bisonai@users.noreply.github.com> Date: Thu, 8 Feb 2024 17:00:16 +0900 Subject: [PATCH] feat: Add actions workflow to linting helm charts --- .github/workflows/ci.helm-lint.yaml | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/ci.helm-lint.yaml diff --git a/.github/workflows/ci.helm-lint.yaml b/.github/workflows/ci.helm-lint.yaml new file mode 100644 index 00000000..d0aead30 --- /dev/null +++ b/.github/workflows/ci.helm-lint.yaml @@ -0,0 +1,42 @@ +name: CI Helm Lint + +on: + workflow_dispatch: + push: + branches: + - i-56/feat/ci-helm-lint + paths: + - '**/*.yaml' + - '**/templates/*.tpl' + - '**/templates/*.yaml' + - '**/**/templates/*.yaml' + # pull_request: + # types: + # - closed + # branches: + # - main + # paths: + # - '**/*.yaml' + # - '**/templates/*.tpl' + # - '**/templates/*.yaml' + # - '**/**/templates/*.yaml' + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Helm + uses: azure/setup-helm@v1 + + - name: Install Helm dependencies + run: helm dependency update + + - name: Run Helm lint + run: | + for chart in $(find . -name "Chart.yaml" -exec dirname {} \;); do + helm lint $chart + done