turn off verbose on linter, add smoke build

if your code doesn't build, the linter errors can be very misleading
This commit is contained in:
Matthew Jaffee 2022-02-01 16:58:40 -06:00
parent 70ea784d41
commit 1f371fa953

View file

@ -14,6 +14,16 @@ stages:
- gauntlet
- post build
smoke build:
image: golang:$GOVERSION
stage: lint
allow_failure: false
rules:
- if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
script:
- echo "Let's just see if it compiles... (sometimes the linter gives unclear errors if it doesn't)"
- go build ./...
golangci-lint:
image: golangci/golangci-lint:v1.39.0
stage: lint
@ -22,7 +32,7 @@ golangci-lint:
- if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"'
script:
- echo "Checking for issues in new code"
- golangci-lint run -v
- golangci-lint run
build lattice:
stage: test