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:
Ava Apples Affine 2024-11-14 09:57:06 -08:00
parent 1ca6b0b402
commit 00fff032c7

View file

@ -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