Add golangci-lint and golint to CI
This commit is contained in:
@ -2,9 +2,25 @@ default:
|
|||||||
image: golang:latest
|
image: golang:latest
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- lint
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
golangci-lint:
|
||||||
|
stage: lint
|
||||||
|
needs: []
|
||||||
|
image: golangci/golangci-lint:latest
|
||||||
|
script:
|
||||||
|
- golangci-lint run
|
||||||
|
|
||||||
|
golint:
|
||||||
|
stage: lint
|
||||||
|
needs: []
|
||||||
|
script:
|
||||||
|
- go get -u golang.org/x/lint/golint
|
||||||
|
- golint -set_exit_status
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
|
needs: []
|
||||||
script:
|
script:
|
||||||
- go test -v
|
- go test -v
|
||||||
|
Reference in New Issue
Block a user