From 14921a0f888dcfb9941515a10b7c6c97b66375a7 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Mon, 27 Apr 2020 12:28:20 +0200 Subject: [PATCH] Add linter check --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ca21a93..be71e96 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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