ci: replace golint with golangci-lint

This commit is contained in:
2023-05-20 08:56:45 +02:00
parent 7f85b25a31
commit 47c83d1a02
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -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
+2
View File
@@ -0,0 +1,2 @@
run:
allow-parallel-runners: true