fuzzyworld

template / commit

Add prep stage of CI that pulls down the linter.

447bec34fd0633394959d554429dc1567483c4df · Pavel Safronov · 2022-11-15 22:16:10 -0800 · parents de8e51ddf40f

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: