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>
24 lines
317 B
YAML
24 lines
317 B
YAML
image: golang:latest
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
|
|
compile:
|
|
stage: build
|
|
script:
|
|
- go build -o bingobot
|
|
artifacts:
|
|
paths:
|
|
- bingobot
|
|
- start.sh
|
|
|
|
tests-state-pkg:
|
|
stage: test
|
|
script:
|
|
- go test ./internal/state
|
|
|
|
tests-config-pkg:
|
|
stage: test
|
|
script:
|
|
- go test ./internal/config
|