From 1a33ef0d2bd7db22642425dc506a97d0edffd41a Mon Sep 17 00:00:00 2001 From: Michel Hollands Date: Wed, 22 May 2024 17:06:01 +0100 Subject: [PATCH] Turn on ci Signed-off-by: Michel Hollands --- .github/workflows/helm-ci.yml | 76 +++++++++++++++++------------------ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/helm-ci.yml b/.github/workflows/helm-ci.yml index 1d64100..0e79660 100644 --- a/.github/workflows/helm-ci.yml +++ b/.github/workflows/helm-ci.yml @@ -20,48 +20,48 @@ jobs: - name: Lint Yaml run: make helm-lint - # call-test: - # name: Test Helm Chart - # runs-on: ubuntu-latest - # steps: - # - name: Checkout - # uses: actions/checkout@v4 - # with: - # fetch-depth: 0 + call-test: + name: Test Helm Chart + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - # - name: Set up Helm - # uses: azure/setup-helm@v3 - # with: - # version: v3.8.2 + - name: Set up Helm + uses: azure/setup-helm@v3 + with: + version: v3.14.0 - # # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and - # # yamllint (https://github.com/adrienverge/yamllint) which require Python - # - name: Set up Python - # uses: actions/setup-python@v4 - # with: - # python-version: 3.9 + # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and + # yamllint (https://github.com/adrienverge/yamllint) which require Python + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.9 - # - name: Set up chart-testing - # uses: helm/chart-testing-action@v2 + - name: Set up chart-testing + uses: helm/chart-testing-action@v2 - # - name: Run chart-testing (list-changed) - # id: list-changed - # run: | - # changed=$(ct list-changed --config "${CT_CONFIGFILE}") - # if [[ -n "$changed" ]]; then - # echo "changed=true" >> $GITHUB_OUTPUT - # fi + - name: Run chart-testing (list-changed) + id: list-changed + run: | + changed=$(ct list-changed --config "${CT_CONFIGFILE}") + if [[ -n "$changed" ]]; then + echo "changed=true" >> $GITHUB_OUTPUT + fi - # - name: Run chart-testing (lint) - # run: ct lint --config "${CT_CONFIGFILE}" --check-version-increment=false + - name: Run chart-testing (lint) + run: ct lint --config "${CT_CONFIGFILE}" --check-version-increment=false - # - name: Create kind cluster - # uses: helm/kind-action@v1 - # if: steps.list-changed.outputs.changed == 'true' - # with: - # config: "${{ github.workspace }}/.github/configs/cluster-config.yaml" + - name: Create kind cluster + uses: helm/kind-action@v1 + if: steps.list-changed.outputs.changed == 'true' + with: + config: "${{ github.workspace }}/.github/configs/cluster-config.yaml" - # - name: Run chart-testing (install) - # run: | - # changed=$(ct list-changed --config "${CT_CONFIGFILE}") - # ct install --config "${CT_CONFIGFILE}" + - name: Run chart-testing (install) + run: | + changed=$(ct list-changed --config "${CT_CONFIGFILE}") + ct install --config "${CT_CONFIGFILE}"