campaigner/.gitlab-ci.yml
2023-08-03 12:50:50 +02:00

16 lines
270 B
YAML

image: golang:1.17-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