20 lines
274 B
YAML
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 ./...
|