-
-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (42 loc) · 1.02 KB
/
ci-chart.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
name: CI - Chart
on:
pull_request:
paths:
- chart/**
push:
branches: [main]
paths:
- chart/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Helm
uses: azure/setup-helm@v3
- name: Lint chart
run: helm lint
working-directory: ./chart
check-docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Download helm-docs
run: go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.11.0
- name: Generate README
run: helm-docs
working-directory: ./chart
- name: Check for changes
run: helm-docs -o README.tmp.md && diff README.md README.tmp.md
working-directory: ./chart