You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
332 B
27 lines
332 B
2 years ago
|
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 ./...
|
||
|
|
||
|
build:
|
||
|
stage: build
|
||
|
script:
|
||
|
- go build
|