From ea71b8a52ee85869b24f3f189723347ec2fa6ce1 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Tue, 4 Mar 2025 06:44:44 +0100 Subject: [PATCH] ci: added linter stage --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c79bbb..4e0acb3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,18 @@ image: "golang:alpine" stages: + - "linter" - "build" +go-linter: + stage: "linter" + image: "golangci/golangci-lint:latest-alpine" + script: + - "golangci-lint run" + go-build: stage: "build" + needs: + - "linter" image: "cr.simoncor.net/siempie/go-build:latest" script: - "GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o gogitlabber cmd/gogitlabber/*"