ci: add test stage to run tests
This commit is contained in:
parent
05deed2452
commit
e69ffa6f37
1 changed files with 7 additions and 0 deletions
|
|
@ -2,10 +2,17 @@ default:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- build
|
- build
|
||||||
- pre-release
|
- pre-release
|
||||||
- release
|
- release
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
image: golang:alpine
|
||||||
|
script:
|
||||||
|
- go test ./... -v
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
|
|
|
||||||
Reference in a new issue