campaigner/.gitlab-ci.yml
2023-03-02 15:35:21 +00:00

16 lines
270 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
stages:
- lint
- build