-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1023 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
44
45
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
- name: Run Helm lint
run: |
for CHART_DIR in ./charts/*; do
if [ -d "$CHART_DIR" ]; then
# Run helm dependencies build
echo "Running 'helm dependencies build' for $(basename "$CHART_DIR")"
helm dependencies build "$CHART_DIR"
if [ $? -ne 0 ]; then
exit 1
fi
# Run helm lint
helm lint "$CHART_DIR"
if [ $? -ne 0 ]; then
exit 1
fi
fi
done