-
Notifications
You must be signed in to change notification settings - Fork 38
82 lines (68 loc) · 1.83 KB
/
ci.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Lint and Test Charts
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
HELM_VERSION: 3.12.0
PYTHON_VERSION: 3.9
jobs:
lint-chart:
name: Lint chart
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: "${{ env.HELM_VERSION }}"
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "${{ env.PYTHON_VERSION }}"
- name: Run Helm lint
run: helm lint charts/*
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.4.0
- name: Run chart-testing (lint)
run: ct lint --config .github/config/chart-testing.yaml
test-install-chart:
name: Test chart installation on K8s
runs-on: ubuntu-latest
needs:
- lint-chart
strategy:
matrix:
# see https://kubernetes.io/releases/patch-releases/#support-period
k8s:
- v1.25.9
- v1.26.4
- v1.27.2
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: "${{ env.HELM_VERSION }}"
- uses: actions/setup-python@v4
with:
python-version: "${{ env.PYTHON_VERSION }}"
- name: Create kind ${{ matrix.k8s }} cluster
uses: helm/kind-action@v1.8.0
with:
node_image: kindest/node:${{ matrix.k8s }}
- name: Check K8s nodes
run: |
kubectl get nodes;
- name: Run Chart Testing install
uses: helm/chart-testing-action@v2.4.0
with:
command: install
config: .github/config/chart-testing.yaml