From d803a2f5034b9590e4e507874b54cf331c452d54 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Sun, 17 Jun 2018 17:48:35 +0530 Subject: [PATCH] .gitlab-ci.yml: run go fmt on all MRs --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cde18c8..a52d60e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ stages: + - go-fmt - build-src - build-docker - go-test @@ -43,6 +44,13 @@ go-test: - mkdir -p src/gitlab.com/commento && cd src/gitlab.com/commento && ln -s $CI_PROJECT_DIR && cd $CI_PROJECT_NAME - make test +go-fmt: + stage: go-fmt + image: golang:1.10.2 + script: + - cd api + - test -z $(go fmt) + docker-registry: stage: docker-registry image: docker:stable