From f2ce3c7cb8228c41b3348458809372f0b1d3fe68 Mon Sep 17 00:00:00 2001 From: David Gerchikov Date: Wed, 20 Nov 2024 16:01:28 +0200 Subject: [PATCH] Create lint-and-test-charts.yaml --- .github/workflows/lint-and-test-charts.yaml | 44 +++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/lint-and-test-charts.yaml diff --git a/.github/workflows/lint-and-test-charts.yaml b/.github/workflows/lint-and-test-charts.yaml new file mode 100644 index 0000000..f59c1ea --- /dev/null +++ b/.github/workflows/lint-and-test-charts.yaml @@ -0,0 +1,44 @@ +name: Lint and Test Charts + +#on: pull_request +on: + push: + branches: + - "VEC-430-configure-test-and-linting-for-all-helm-charts" +jobs: + lint-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Helm + uses: azure/setup-helm@v4.2.0 + with: + version: v3.14.4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + check-latest: true + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.7.0 + + - name: Output default branch + run: | + echo "Branch: ${{ github.event.repository.default_branch }}" + +# - name: Run chart-testing (lint) +# if: steps.list-changed.outputs.changed == 'true' +# run: ct lint --target-branch ${{ github.event.repository.default_branch }} +# +# - name: Create kind cluster +# if: steps.list-changed.outputs.changed == 'true' +# uses: helm/kind-action@v1.10.0 +# +# - name: Run chart-testing (install) +# if: steps.list-changed.outputs.changed == 'true' +# run: ct install --target-branch ${{ github.event.repository.default_branch }} \ No newline at end of file