main
1image: golang:alpine
2
3before_script:
4 - apk add --no-cache git
5 - go install github.com/magefile/mage@latest
6
7stages:
8 - build
9 - test
10
11go_build:
12 stage: build
13 variables:
14 GOOS: linux
15 GOARCH: amd64
16 CGO_ENABLED: 0
17 script:
18 - mage build
19
20go_test:
21 stage: test
22 script:
23 - mage test