-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (32 loc) · 915 Bytes
/
ci.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
name: CI
on:
pull_request:
branches: [main]
jobs:
helm-chart-validation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v4
- name: Run helm lint
run: helm lint ./charts/deepgram-self-hosted
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
- name: Install helm-docs
run: |
go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest
- name: Run helm-docs
run: |
helm-docs
- name: Check if README.md is up to date
run: |
if ! git diff --quiet -- ./charts/deepgram-self-hosted/README.md; then
echo "README.md is out of date. Please run helm-docs and commit the changes."
exit 1
fi