Add linter check
This commit is contained in:
parent
055648300f
commit
14921a0f88
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
image: golang:1.14-buster
|
image: golang:1.14-buster
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
stage: lint
|
||||||
|
script:
|
||||||
|
- go fmt ./...
|
||||||
|
- if [[ -n $(git status --porcelain) ]]; then echo "The code is not correctly formatted"; exit 1; fi
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
|
@ -9,4 +15,5 @@ build:
|
||||||
- campaigner
|
- campaigner
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- lint
|
||||||
- build
|
- build
|
||||||
|
|
Loading…
Reference in a new issue