File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,14 @@ jobs:
20
20
uses : actions/setup-go@v4
21
21
with :
22
22
go-version : ^1.22
23
-
24
- - name : Build
25
- run : make build
23
+ - name : Install golangci-lint
24
+ uses : golangci/golangci-lint-action@v6
25
+ with :
26
+ version : v1.59
26
27
- name : Install dependency
27
28
run : if [ $(uname) == "Darwin" ]; then brew install gnu-sed ;fi
29
+ - name : Build
30
+ run : make build
28
31
- name : Run unit tests
29
32
run : go install github.com/go-delve/delve/cmd/dlv@latest && go test ./... -v -covermode=count -coverprofile=coverage.txt
30
33
- name : Upload Coverage report to CodeCov
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func NewProxy(cfg *cfgProxy) *Proxy {
34
34
Addr : fmt .Sprintf (":%d" , cfg .ProxyPort ),
35
35
},
36
36
client : & http.Client {
37
- CheckRedirect : func (req * http.Request , via []* http.Request ) error {
37
+ CheckRedirect : func (_ * http.Request , _ []* http.Request ) error {
38
38
return http .ErrUseLastResponse
39
39
},
40
40
},
You can’t perform that action at this time.
0 commit comments