Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit db392e1

Browse files
committed
Update linter to v1.23.0 and add separate lint-ci command
1 parent 3053c50 commit db392e1

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ jobs:
55
- image: circleci/golang:1.13
66
steps:
77
- checkout
8-
- run: make lint-tools
9-
- run: make lint
8+
- run: make lint-ci
109
test:
1110
docker:
1211
- image: circleci/golang:1.13

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@ tools: format-tools lint-tools
1414
format-tools:
1515
@go get -u golang.org/x/tools/cmd/goimports
1616

17+
GOLANGCI_VERSION=v1.23.0
18+
1719
lint-tools:
18-
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.15.0
20+
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_VERSION}
21+
22+
lint-ci:
23+
@echo "==> Installing linter"
24+
@wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s ${GOLANGCI_VERSION}
25+
@echo "==> Linting"
26+
@./bin/golangci-lint run ./...
1927

2028
COMMIT=`git rev-parse --short HEAD`
2129
VERSION=`git describe --always`

0 commit comments

Comments
 (0)