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