campaigner/.gitlab-ci.yml
2023-08-03 13:06:20 +02:00

16 lines
258 B
YAML

image: golang:1.18-buster
fmt:
stage: lint
script:
- go fmt ./...
- 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