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+ 12+ with :
13+ fetch-depth : 0
14+
15+ - name : " Set Up Helm"
16+ 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:
66 @echo " Generate chart docs"
77 @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
88
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+
914.PHONY : verify
1015verify : verify-gen
1116
You can’t perform that action at this time.
0 commit comments