Skip to content

Commit

Permalink
CI test across K8s version v1.16-v1.22
Browse files Browse the repository at this point in the history
Signed-off-by: JenTing Hsiao <[email protected]>
  • Loading branch information
JenTing Hsiao committed Aug 13, 2021
1 parent 8fbf799 commit dca1b38
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ on: pull_request
jobs:
lint-test:
runs-on: ubuntu-latest
strategy:
matrix:
# Latest k8s versions. There's no series-based tag, nor is there a latest tag.
k8s:
- 1.16.15
- 1.17.17
- 1.18.15
- 1.19.7
- 1.20.2
- 1.21.1
- 1.22.0
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -20,6 +31,9 @@ jobs:

- name: Create kind cluster
uses: helm/[email protected]
with:
version: "v0.11.1"
node_image: "kindest/node:v${{ matrix.k8s }}"
# Only build a kind cluster if there are chart changes to test.
if: steps.lint.outputs.changed == 'true'

Expand Down

0 comments on commit dca1b38

Please sign in to comment.