-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.11 KB
/
helm-charts-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "helm-charts/test"
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch history
run: git fetch --prune --unshallow
- name: Install Chart Tester
uses: helm/chart-testing-action@v2.6.1
- name: Lint charts
id: lint
run: ct lint --all
test:
runs-on: ubuntu-latest
needs: lint
strategy:
fail-fast: false
matrix:
k8s:
- "1.28"
- "1.29"
- "1.30"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Fetch history
run: git fetch --prune --unshallow
- name: Create kind cluster
uses: helm/kind-action@v1.8.0
with:
installLocalPathProvisioner: true # Only build a kind cluster if there are chart changes to test.
node_image: "kindest/node:v${{ matrix.k8s }}.0"
config: etc/kind.yaml
- run: kubectl get nodes
- name: Install Chart Tester
uses: helm/chart-testing-action@v2.6.1
- name: Test charts
run: ct install