File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Verify Chart Schema
2
+ on :
3
+ push :
4
+
5
+ jobs :
6
+ verify-schema :
7
+ name : " Verify Chart Schema"
8
+ runs-on : ubuntu-22.04
9
+ steps :
10
+ - name : " Checkout"
11
+ uses : actions/checkout@v2.4.2
12
+ with :
13
+ fetch-depth : 0
14
+
15
+ - name : " Set Up Helm"
16
+ uses : azure/setup-helm@v3.3
17
+ if : github.ref != 'refs/heads/main'
18
+ with :
19
+ version : v3.4.1
20
+ - name : install helm-schema-gen
21
+ run : helm plugin install https://github.com/karuppiah7890/helm-schema-gen.git
22
+ - name : Set up dependencies
23
+ run : |
24
+ sudo apt-get update
25
+ sudo apt-get install -y make
26
+ # Install chart-doc-gen or add additional commands as needed
27
+
28
+ - name : Generate Documentation
29
+ run : make gen-schema
30
+
31
+ - name : Verify Documentation
32
+ run : make verify
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ gen-chart-doc:
6
6
@echo " Generate chart docs"
7
7
@chart-doc-gen -t=./charts/factorio-server-charts/readme.tpl -d=./charts/factorio-server-charts/doc.yaml -v=./charts/factorio-server-charts/values.yaml > ./charts/factorio-server-charts/README.md
8
8
9
+ .PHONY : gen-schema
10
+ gen-schema :
11
+ @echo " Generate helm schema json"
12
+ @helm schema-gen ./charts/factorio-server-charts/values.yaml > ./charts/factorio-server-charts/values.schema.json
13
+
9
14
.PHONY : verify
10
15
verify : verify-gen
11
16
You can’t perform that action at this time.
0 commit comments