mirror of
https://code.rocketnine.space/tslocum/gmitohtml.git
synced 2024-11-15 10:37:52 +01:00
22 lines
284 B
YAML
22 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 ./...
|