Skip to content

Commit

Permalink
feat: bump golangci-lint and add lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 3, 2020
1 parent 0832138 commit 5ea6fb6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ define make-go-dependency
GOBIN=$(PWD)/.bin/ go install $1
endef

.bin/golangci-lint: Makefile
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b .bin v1.31.0

$(foreach dep, $(GO_DEPENDENCIES), $(eval $(call make-go-dependency, $(dep))))

node_modules: package.json
Expand All @@ -30,6 +33,10 @@ node_modules: package.json
docs/cli: .bin/clidoc
clidoc .

.PHONY: lint
lint: .bin/golangci-lint
golangci-lint run -v ./...

# Runs full test suite including tests where databases are enabled
.PHONY: test-legacy-migrations
test-legacy-migrations: test-resetdb sqlbin
Expand Down

0 comments on commit 5ea6fb6

Please sign in to comment.