Add linter check

This commit is contained in:
Miguel de la Cruz 2020-04-27 12:28:20 +02:00
parent 055648300f
commit 14921a0f88

View file

@ -1,5 +1,11 @@
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:
stage: build
script:
@ -9,4 +15,5 @@ build:
- campaigner
stages:
- lint
- build