1717 default : false
1818 type : boolean
1919 Linter :
20- description : ' Linter check'
20+ description : ' Check linters'
21+ default : false
22+ type : boolean
23+ LinterAll :
24+ description : ' Check all linters'
2125 default : false
2226 type : boolean
2327 Test :
@@ -82,26 +86,35 @@ jobs:
8286 if : ${{ github.event.inputs.Update == 'true' }}
8387 run : go get -u ./...
8488
85- # Linter
86- - name : Golangci linter check
89+ # Linters
90+
91+ - name : Golangci linters check
8792 if : ${{ github.event.inputs.Linter == 'true' }}
8893 run : |
8994 go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
90- golangci-lint run ./main.go
95+ golangci-lint run -v ./main.go
9196
92- - name : Critic linter check
97+ - name : Critic linters check
9398 if : ${{ github.event.inputs.Linter == 'true' }}
9499 run : |
95100 go install github.com/go-critic/go-critic/cmd/gocritic@latest
96- gocritic check -enableAll ./main.go
101+ gocritic check -v - enableAll ./main.go
97102
98- - name : Security linter check
103+ - name : Security linters check
99104 if : ${{ github.event.inputs.Linter == 'true' }}
100105 run : |
101106 go install github.com/securego/gosec/v2/cmd/gosec@latest
102107 gosec -severity=high ./...
103108
109+ - name : Security linters check
110+ if : ${{ github.event.inputs.LinterAll == 'true' }}
111+ run : |
112+ go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
113+ golangci-lint run -v ./main.go --no-config --enable-all
114+ continue-on-error : true
115+
104116 # Linux
117+
105118 - name : Start docker container for test in Ubuntu
106119 if : ${{ (github.event.inputs.Release == 'true' || github.event.inputs.Test == 'true') && github.event.inputs.Distro != 'macos-15' && github.event.inputs.Distro != 'windows-2022' }}
107120 run : |
@@ -143,6 +156,7 @@ jobs:
143156 timeout-minutes : 10
144157
145158 # + Docker without root
159+
146160 - name : Unit testing for docker without root in Linux
147161 if : ${{ github.event.inputs.Test == 'true' && github.event.inputs.Distro != 'macos-15' && github.event.inputs.Distro != 'windows-2022' }}
148162 run : env "PATH=$PATH" go test -v -cover --run "TestDockerContainer"
@@ -163,6 +177,7 @@ jobs:
163177 continue-on-error : true
164178
165179 # macOS
180+
166181 - name : Unit testing (files, flags, cli and run main interface) in macOS
167182 if : ${{ github.event.inputs.Test == 'true' && github.event.inputs.Distro == 'macos-15' }}
168183 run : |
@@ -178,6 +193,7 @@ jobs:
178193 continue-on-error : true
179194
180195 # Windows
196+
181197 - name : Create log file for Windows
182198 if : ${{ github.event.inputs.Test == 'true' && github.event.inputs.Distro == 'windows-2022' }}
183199 run : |
@@ -202,7 +218,8 @@ jobs:
202218 shell : pwsh
203219 continue-on-error : true
204220
205- # Release
221+ # Release (Flags and TMUX)
222+
206223 - name : Install binary from last commit on GitHub
207224 if : ${{ github.event.inputs.Release == 'true' }}
208225 run : |
0 commit comments