Add golangci-lint and golint to CI

This commit is contained in:
Jan-Eric Hellenberg
2021-04-23 15:38:43 +02:00
parent be93c36cc8
commit 5352673b2c

View File

@ -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