Commit 9d425f0
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