Upgrade linter, and move away from incremental linting

Incremental linting doesn't seem to catch issues correctly. This
runs the linters in a more standard way.
This commit is contained in:
Sargun Dhillon
2019-09-03 10:46:31 -07:00
parent 7133a372d6
commit 3f85705461

View File

@@ -15,10 +15,10 @@ jobs:
command: V=1 CI=1 make vet
- run:
name: Install linters
command: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s v1.15.0 && mv ./bin/* /go/bin/
command: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s v1.17.1 && mv ./bin/* /go/bin/
- run:
name: Lint
command: golangci-lint run --new-from-rev "HEAD~$(git rev-list master.. --count)" ./...
command: golangci-lint run ./...
- run:
name: Dependencies
command: scripts/validate/gomod.sh