Skip to content

Commit f592348

Browse files
committed
Automate supported versions
1 parent 1bd69c5 commit f592348

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/helm-charts-test.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ name: "helm-charts/test"
33
on: pull_request
44

55
jobs:
6+
kubernetes-versions:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- id: release
10+
uses: actions-matrix/release-matrix-action@v2
11+
with:
12+
search: "kubernetes"
13+
outputs:
14+
matrix: ${{ steps.release.outputs.matrix }}
615
lint:
716
runs-on: ubuntu-latest
817
steps:
@@ -15,17 +24,15 @@ jobs:
1524
- name: Lint charts
1625
id: lint
1726
run: ct lint --all --target-branch ${{ github.event.repository.default_branch }}
18-
1927
test:
2028
runs-on: ubuntu-latest
21-
needs: lint
29+
needs:
30+
- lint
31+
- kubernetes-versions
2232
strategy:
2333
fail-fast: false
2434
matrix:
25-
k8s:
26-
- "1.28"
27-
- "1.29"
28-
- "1.30"
35+
k8s: ${{ fromJson(needs.kubernetes-versions.outputs.matrix).versions }}
2936
steps:
3037
- name: Checkout
3138
uses: actions/checkout@v4

0 commit comments

Comments
 (0)