mirror of
https://code.rocketnine.space/tslocum/twins.git
synced 2024-11-27 13:28:15 +01:00
21 lines
284 B
YAML
21 lines
284 B
YAML
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 ./...
|