19 lines
313 B
YAML
19 lines
313 B
YAML
image: golang:1.14-buster
|
|
|
|
fmt:
|
|
stage: lint
|
|
script:
|
|
- go fmt -mod=vendor ./...
|
|
- if [[ -n $(git status --porcelain) ]]; then echo "The code is not correctly formatted"; exit 1; fi
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- make build
|
|
artifacts:
|
|
paths:
|
|
- campaigner
|
|
|
|
stages:
|
|
- lint
|
|
- build
|