From b2c838edba78b4874573f1c599dfa3712dad25a1 Mon Sep 17 00:00:00 2001 From: JenTing Hsiao Date: Wed, 16 Aug 2023 19:49:35 +0800 Subject: [PATCH] Bump CI versions Signed-off-by: JenTing Hsiao --- .github/workflows/lint-test.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 276cacec..e96cc5f4 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -27,34 +27,35 @@ jobs: - name: Set up Helm uses: azure/setup-helm@v3 with: - version: v3.8.1 + version: v3.11.2 - uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: '3.9' + check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.2.1 + uses: helm/chart-testing-action@v2.4.0 - name: Run chart-testing (list-changed) id: list-changed run: | changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) if [[ -n "$changed" ]]; then - echo "::set-output name=changed::true" + echo "changed=true" >> "$GITHUB_OUTPUT" fi - 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 uses: helm/kind-action@v1.5.0 + if: steps.list-changed.outputs.changed == 'true' with: version: "v0.14.0" node_image: "kindest/node:v${{ matrix.k8s }}" - # Only build a kind cluster if there are chart changes to test. - if: steps.list-changed.outputs.changed == 'true' - name: Run chart-testing (install+upgrade) - run: ct install --upgrade --target-branch ${{ github.event.repository.default_branch }} if: steps.list-changed.outputs.changed == 'true' + run: ct install --upgrade --target-branch ${{ github.event.repository.default_branch }}