Skip to content

Commit 41a2a9d

Browse files
committed
debezium/dbz#1452 Add linting and basic K8s manifests validation
1 parent c8c5e51 commit 41a2a9d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Verify Helm Chart
2+
on:
3+
pull_request:
4+
paths:
5+
- "helm/**"
6+
branches:
7+
- main
8+
9+
jobs:
10+
verify-helm:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Helm
17+
uses: azure/setup-helm@v4
18+
with:
19+
version: 'latest'
20+
21+
- name: Get chart dependencies
22+
run: helm dependency update helm/
23+
24+
- name: Helm lint
25+
run: helm lint helm/ -f examples/example.yaml
26+
27+
- name: Set up kubeconform
28+
run: |
29+
curl -L https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz
30+
sudo mv kubeconform /usr/local/bin/
31+
32+
- name: Helm template and validate with kubeconform
33+
run: |
34+
helm template debezium-platform helm/ -f examples/example.yaml | kubeconform -strict -summary

0 commit comments

Comments
 (0)