Skip to content

Commit 3aa5b82

Browse files
authored
feat: support two helm minor version in test (#552)
* feat: support two helm minor version in test Signed-off-by: yxxhero <[email protected]>
1 parent 123f3b0 commit 3aa5b82

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
---
22
name: CI
33

4-
env:
5-
VERSION_HELM: 'v3.11.3'
6-
74
on:
85
pull_request:
96
push:
@@ -46,17 +43,34 @@ jobs:
4643
os: [ubuntu-latest, macos-latest, windows-latest]
4744
shell: [ default ]
4845
experimental: [ false ]
46+
helm-version: [ v3.13.3, v3.14.0 ]
4947
include:
5048
- os: windows-latest
5149
shell: wsl
5250
experimental: false
51+
helm-version: v3.13.3
52+
- os: windows-latest
53+
shell: cygwin
54+
experimental: false
55+
helm-version: v3.13.3
56+
- os: ubuntu-latest
57+
container: alpine
58+
shell: sh
59+
experimental: false
60+
helm-version: v3.13.3
61+
- os: windows-latest
62+
shell: wsl
63+
experimental: false
64+
helm-version: v3.14.0
5365
- os: windows-latest
5466
shell: cygwin
5567
experimental: false
68+
helm-version: v3.14.0
5669
- os: ubuntu-latest
5770
container: alpine
5871
shell: sh
5972
experimental: false
73+
helm-version: v3.14.0
6074

6175
steps:
6276
- name: Disable autocrlf
@@ -70,7 +84,7 @@ jobs:
7084
- name: Setup Helm
7185
uses: azure/setup-helm@v3
7286
with:
73-
version: ${{ env.VERSION_HELM }}
87+
version: ${{ matrix.helm-version }}
7488

7589
- name: Setup WSL
7690
if: "contains(matrix.shell, 'wsl')"
@@ -90,6 +104,14 @@ jobs:
90104
if: "!contains(github.event.head_commit.message, '[ci skip]')"
91105
needs: [build]
92106
runs-on: ubuntu-latest
107+
strategy:
108+
matrix:
109+
include:
110+
# Helm maintains the latest minor version only and therefore each Helmfile version supports 2 Helm minor versions.
111+
# That's why we cover only 2 Helm minor versions in this matrix.
112+
# See https://github.com/helmfile/helmfile/pull/286#issuecomment-1250161182 for more context.
113+
- helm-version: v3.13.3
114+
- helm-version: v3.14.0
93115
steps:
94116
- uses: engineerd/[email protected]
95117
with:
@@ -100,7 +122,7 @@ jobs:
100122
- name: Setup Helm
101123
uses: azure/setup-helm@v3
102124
with:
103-
version: ${{ env.VERSION_HELM }}
125+
version: ${{ matrix.helm-version }}
104126

105127
- name: helm plugin install
106128
run: helm plugin install .

0 commit comments

Comments
 (0)