template / commit
Add prep stage of CI that pulls down the linter.
.gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5b850cb..fd5ed21 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,10 +19,17 @@ image: golang:1.9 stages: # List of stages for jobs, and their order of execution + - prep - build - test - deploy +prepare: + stage: prep + script: + - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.1 + - golangci-lint --version + build-job: # This job runs in the build stage, which runs first. stage: build script: