2023-08-03 12:50:50 +02:00
|
|
|
image: golang:1.17-buster
|
2020-04-27 12:23:05 +02:00
|
|
|
|
2020-04-27 12:28:20 +02:00
|
|
|
fmt:
|
|
|
|
stage: lint
|
|
|
|
script:
|
2020-04-27 12:29:12 +02:00
|
|
|
- go fmt -mod=vendor ./...
|
2020-04-27 12:28:20 +02:00
|
|
|
- if [[ -n $(git status --porcelain) ]]; then echo "The code is not correctly formatted"; exit 1; fi
|
|
|
|
|
2020-04-27 12:23:05 +02:00
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- make build
|
|
|
|
|
|
|
|
stages:
|
2020-04-27 12:28:20 +02:00
|
|
|
- lint
|
2020-04-27 12:23:05 +02:00
|
|
|
- build
|