From 47c83d1a02e5b154ee9c269bd109c72e36e116bb Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sat, 20 May 2023 08:56:45 +0200 Subject: [PATCH] ci: replace golint with golangci-lint --- .gitlab-ci.yml | 4 ++-- .golangci.yml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .golangci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0fe7f0f..ecd86df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..9692e46 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,2 @@ +run: + allow-parallel-runners: true -- 2.52.0