Commit 9d425f0

mo khan <mo@mokhan.ca>
2024-06-05 18:05:41
Install mage before all CI jobs
1 parent ecd4e6e
Changed files (1)
.gitlab-ci.yml
@@ -1,5 +1,9 @@
 image: golang:alpine
 
+before_script:
+  - apk add --no-cache git
+  - go install github.com/magefile/mage@latest
+
 stages:
   - build
   - test
@@ -10,16 +14,10 @@ go_build:
     GOOS: linux
     GOARCH: amd64
     CGO_ENABLED: 0
-  before_script:
-    - apk add --no-cache git
   script:
-    - go install github.com/magefile/mage@latest
     - mage build
 
 go_test:
   stage: test
-  before_script:
-    - apk add --no-cache git
   script:
-    - go install github.com/magefile/mage@latest
     - mage test