-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (45 loc) · 1.45 KB
/
check.yml
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
name: Static verification
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
static-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
- name: Set up Helm
uses: azure/setup-helm@v3
- name: Set up kubeconform
run: go install github.com/yannh/kubeconform/cmd/kubeconform@latest
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install yamllint
run: |
python -m pip install --upgrade pip
pip install yamllint
- name: Verify yamls
run: |
yamllint -s .
- name: Lint Helm charts
run: |
helm lint charts/tdk
helm lint charts/sdk
helm lint charts/governor
- name: Verify Helm chart outputs
run: |
helm template --set mode=cloud \
--set ingress.enabled=true \
--set grpcIngress.enabled=true \
charts/governor | kubeconform -strict
helm template --set mode=self-hosted \
--set ingress.enabled=true \
--set grpcIngress.enabled=true \
charts/governor | kubeconform -strict
helm template charts/tdk | kubeconform -strict
helm template charts/sdk | kubeconform -strict