-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 928 Bytes
/
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
name: Run CI
on:
push:
branches:
- main
tags:
- '*'
pull_request:
jobs:
linter:
name: Check Charts Syntax
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Helm
uses: azure/[email protected]
with:
version: v3.14.4
- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add maykin https://maykinmedia.github.io/charts/
- name: Run Helm lint
run: |
for CHART_DIR in ./charts/*; do
if [ -d "$CHART_DIR" ]; then
helm dependencies build "$CHART_DIR"
if [ $? -ne 0 ]; then
exit 1
fi
helm lint "$CHART_DIR"
if [ $? -ne 0 ]; then
exit 1
fi
fi
done