twins-upstream/.gitlab-ci.yml

22 lines
284 B
YAML
Raw Normal View History

2020-10-29 21:35:48 +01:00
image: golang:latest
stages:
- validate
- build
fmt:
stage: validate
script:
- gofmt -l -s -e .
- exit $(gofmt -l -s -e . | wc -l)
vet:
stage: validate
script:
- go vet -composites=false ./...
test:
stage: validate
script:
- go test -race -v ./...