Add testing CI
This commit extends our CI definitions to add a testing phase to the pipeline. The testing phase is intended to be comprised of separate stages per package that has tests included. Currently this consists of the state and config packages. Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
parent
1ca6b0b402
commit
00fff032c7
1 changed files with 11 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ image: golang:latest
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
@ -11,3 +12,13 @@ compile:
|
||||||
paths:
|
paths:
|
||||||
- bingobot
|
- bingobot
|
||||||
- start.sh
|
- start.sh
|
||||||
|
|
||||||
|
tests-state-pkg:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- go test ./internal/state
|
||||||
|
|
||||||
|
tests-config-pkg:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- go test ./internal/config
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue