ci: replace golint with golangci-lint
This commit is contained in:
+2
-2
@@ -39,10 +39,10 @@ test:
|
||||
dependencies:
|
||||
- deps
|
||||
script:
|
||||
- go get golang.org/x/lint/golint
|
||||
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2
|
||||
- go fmt $(go list ./...)
|
||||
- go vet $(go list ./...)
|
||||
- golint -set_exit_status ./...
|
||||
- golangci-lint run
|
||||
- CGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
|
||||
- go tool cover -html=coverage.txt -o coverage.html
|
||||
- go tool cover -func=coverage.txt
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
run:
|
||||
allow-parallel-runners: true
|
||||
Reference in New Issue
Block a user