Skip to content

Commit

Permalink
Resolve Kind Cluster not able to be built in PR checks
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Dec 7, 2022
1 parent 4b4b910 commit 6d5d7c6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
k8s: ["1.14.10", "1.18.19", "1.19.11", "1.21.2", "1.22.2"]
k8s: ["1.14.10", "1.18.19", "1.19.11", "1.21.2", "1.22.2", "1.23.14", "1.24.8", "1.25.4"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -17,6 +17,8 @@ jobs:

- name: Install Helm
uses: azure/setup-helm@v1.1
# as of 2022/12 the set-output still not fixed in this action
# https://github.com/Azure/setup-helm/issues/103
with:
version: v3.7.0

Expand All @@ -32,17 +34,17 @@ jobs:
run: |
changed=$(ct list-changed --config ct.yaml)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "CHART_CHANGED=true" >> $GITHUB_ENV
fi
- name: Run chart-testing (lint)
run: ct lint --config ct.yaml

- name: Create kind cluster
uses: helm/kind-action@v1.2.0
uses: helm/kind-action@v1.4.0
with:
node_image: kindest/node:v${{ matrix.k8s }}
if: steps.list-changed.outputs.changed == 'true'
if: ${{ env.CHART_CHANGED == 'true' }}

# See https://github.com/helm/chart-testing/blob/main/doc/ct_install.md
- name: Run chart-testing (install)
Expand Down

0 comments on commit 6d5d7c6

Please sign in to comment.