crib/.gitlab-ci.yml
2020-06-06 04:26:44 -07:00

20 lines
274 B
YAML

image: golang:latest
stages:
- validate
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 ./...