Run linting on an image with golint preinstalled

Running `go get` adds a line to `go.mod` every time, so using a
preinstalled golint avoids churn.
This commit is contained in:
Erin Call 2019-12-16 15:44:46 -08:00
parent 13c663e906
commit 173cf374f9
No known key found for this signature in database
GPG key ID: 4071FF6C15B8DAD1

View file

@ -9,8 +9,10 @@ steps:
commands:
- go test ./cmd/... ./internal/...
- go vet ./cmd/... ./internal/...
- go get -u golang.org/x/lint/golint
- golint ./cmd/... ./internal/...
- name: lint
image: cytopia/golint
commands:
- golint -set_exit_status ./cmd/... ./internal/...
- name: build
image: golang:1.13
commands: