2 changed files with 21 additions and 14 deletions
@ -1,8 +1,21 @@
@@ -1,8 +1,21 @@
|
||||
image: golang:latest |
||||
|
||||
stages: |
||||
- test |
||||
- 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: |
||||
image: golang:latest |
||||
stage: test |
||||
stage: validate |
||||
script: |
||||
- go test -v ./... |
||||
- go test -race -v ./... |
||||
|
Loading…
Reference in new issue