From b4cacd1e64cc558ba127527d1bc32f42721b0741 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 16 Jun 2025 11:58:13 +0200 Subject: [PATCH] feat: move linting to component --- .gitlab-ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 47587a0..f045d95 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,8 @@ stages: - - "linter" + - "linting" - "testing" - "releasing" -linter: - stage: "linter" - image: "golangci/golangci-lint:latest-alpine" - script: - - "golangci-lint run" - testing: stage: "testing" needs: @@ -30,3 +24,10 @@ releasing: GITLAB_TOKEN: '$GORELEASER_GITLAB_TOKEN' script: - "goreleaser release --clean" + + +# include jobs +include: + + # linting + - component: "$CI_SERVER_FQDN/components/golanglint/golanglint@v1.0.0"