File tree 9 files changed +24
-6
lines changed
9 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 78
78
echo "Building snapshot..."
79
79
./build.sh
80
80
81
+ check-docs :
82
+ name : check-docs
83
+ runs-on : ubuntu-latest
84
+ steps :
85
+ - uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
86
+ - uses : actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # v3
87
+ with :
88
+ go-version-file : ' ./go.mod'
89
+ check-latest : true
90
+
91
+ - name : generate docs
92
+ run : |
93
+ go build -o ct-bin ./ct/main.go
94
+ ./ct-bin doc-gen
95
+ git_status="$(git status --porcelain)"
96
+ if [[ ${git_status} ]]; then
97
+ echo -e 'Documentation is outdated. Please update the docs\n'
98
+ echo "${git_status}"
99
+ exit 1
100
+ fi
101
+
81
102
golangci :
82
103
name : lint
83
104
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 5
5
/dist
6
6
/config. *
7
7
vendor
8
+ /ct-bin
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ func NewRootCmd() *cobra.Command {
49
49
cmd .AddCommand (newVersionCmd ())
50
50
cmd .AddCommand (newGenerateDocsCmd ())
51
51
52
+ cmd .DisableAutoGenTag = true
53
+
52
54
return cmd
53
55
}
54
56
Original file line number Diff line number Diff line change @@ -26,4 +26,3 @@ in given chart directories.
26
26
* [ ct list-changed] ( ct_list-changed.md ) - List changed charts
27
27
* [ ct version] ( ct_version.md ) - Print version information
28
28
29
- ###### Auto generated by spf13/cobra on 23-Mar-2022
Original file line number Diff line number Diff line change @@ -78,4 +78,3 @@ ct install [flags]
78
78
79
79
* [ ct] ( ct.md ) - The Helm chart testing tool
80
80
81
- ###### Auto generated by spf13/cobra on 23-Mar-2022
Original file line number Diff line number Diff line change @@ -77,4 +77,3 @@ ct lint-and-install [flags]
77
77
78
78
* [ ct] ( ct.md ) - The Helm chart testing tool
79
79
80
- ###### Auto generated by spf13/cobra on 23-Mar-2022
Original file line number Diff line number Diff line change @@ -74,4 +74,3 @@ ct lint [flags]
74
74
75
75
* [ ct] ( ct.md ) - The Helm chart testing tool
76
76
77
- ###### Auto generated by spf13/cobra on 23-Mar-2022
Original file line number Diff line number Diff line change @@ -32,4 +32,3 @@ ct list-changed [flags]
32
32
33
33
* [ ct] ( ct.md ) - The Helm chart testing tool
34
34
35
- ###### Auto generated by spf13/cobra on 23-Mar-2022
Original file line number Diff line number Diff line change @@ -16,4 +16,3 @@ ct version [flags]
16
16
17
17
* [ ct] ( ct.md ) - The Helm chart testing tool
18
18
19
- ###### Auto generated by spf13/cobra on 23-Mar-2022
You can’t perform that action at this time.
0 commit comments