mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
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:
parent
70ea784d41
commit
1f371fa953
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue