From 5352673b2c0bfb6dd24c3d4e0438bc186dad6bb5 Mon Sep 17 00:00:00 2001 From: Jan-Eric Hellenberg Date: Fri, 23 Apr 2021 15:38:43 +0200 Subject: [PATCH] Add golangci-lint and golint to CI --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b4e3aaa..262726f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,9 +2,25 @@ default: image: golang:latest stages: + - lint - test +golangci-lint: + stage: lint + needs: [] + image: golangci/golangci-lint:latest + script: + - golangci-lint run + +golint: + stage: lint + needs: [] + script: + - go get -u golang.org/x/lint/golint + - golint -set_exit_status + test: stage: test + needs: [] script: - go test -v