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:
parent
13c663e906
commit
173cf374f9
|
@ -9,8 +9,10 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- go test ./cmd/... ./internal/...
|
- go test ./cmd/... ./internal/...
|
||||||
- go vet ./cmd/... ./internal/...
|
- go vet ./cmd/... ./internal/...
|
||||||
- go get -u golang.org/x/lint/golint
|
- name: lint
|
||||||
- golint ./cmd/... ./internal/...
|
image: cytopia/golint
|
||||||
|
commands:
|
||||||
|
- golint -set_exit_status ./cmd/... ./internal/...
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:1.13
|
image: golang:1.13
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Reference in a new issue