Skip to content

Commit 495ee7b

Browse files
committed
ci: Ensure helm tests run on changes to the chart
Signed-off-by: Marco Franssen <[email protected]>
1 parent 431d8f7 commit 495ee7b

File tree

2 files changed

+56
-34
lines changed

2 files changed

+56
-34
lines changed

.github/workflows/helm-ci.yaml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Helm CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'master'
7+
- 'release-*'
8+
paths:
9+
- ".github/workflows/helm-ci.yaml"
10+
- "charts/**"
11+
- "tests/**"
12+
- "Makefile"
13+
- "go.mod"
14+
- "go.sum"
15+
16+
env:
17+
KUBECTL_VERSION: v1.25.1
18+
HELM_VERSION: v3.17.2
19+
20+
jobs:
21+
helm-tests:
22+
name: helm e2e tests
23+
runs-on: ubuntu-22.04
24+
25+
timeout-minutes: 30
26+
27+
env:
28+
GO111MODULE: "on"
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
with:
34+
fetch-depth: 0
35+
36+
- name: Install Go
37+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
38+
with:
39+
go-version-file: go.mod
40+
cache-dependency-path: go.sum
41+
42+
- name: Setup kubectl
43+
uses: marcofranssen/setup-kubectl@d81bf181729cee2bc813ac2ea2f74dec90f01f99 # v1.3.0
44+
with:
45+
kubectlVersion: ${{ env.KUBECTL_VERSION }}
46+
47+
- name: Install Helm
48+
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
49+
with:
50+
version: ${{ env.HELM_VERSION }}
51+
52+
- name: Install dependences
53+
run: make ginkgo kind
54+
55+
- name: Run helm e2e tests
56+
run: make helm-e2e

.github/workflows/main.yaml

-34
Original file line numberDiff line numberDiff line change
@@ -116,40 +116,6 @@ jobs:
116116
- name: Run e2e tests
117117
run: make e2e
118118

119-
helm_tests:
120-
runs-on: ubuntu-22.04
121-
timeout-minutes: 30
122-
name: helm e2e tests
123-
env:
124-
GO111MODULE: "on"
125-
steps:
126-
- name: Checkout
127-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
128-
with:
129-
fetch-depth: 0
130-
131-
- name: Install Go
132-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
133-
with:
134-
go-version-file: go.mod
135-
cache-dependency-path: go.sum
136-
137-
- name: Setup kubectl
138-
uses: marcofranssen/setup-kubectl@d81bf181729cee2bc813ac2ea2f74dec90f01f99 # v1.3.0
139-
with:
140-
kubectlVersion: ${{ env.KUBECTL_VERSION }}
141-
142-
- name: Install Helm
143-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
144-
with:
145-
version: ${{ env.HELM_VERSION }}
146-
147-
- name: Install dependences
148-
run: make ginkgo kind
149-
150-
- name: Run helm e2e tests
151-
run: make helm-e2e
152-
153119
build:
154120
runs-on: ubuntu-22.04
155121
timeout-minutes: 30

0 commit comments

Comments
 (0)