From 00fff032c73de9d932dc259844a7f2b9659c14ba Mon Sep 17 00:00:00 2001 From: Ava Affine Date: Thu, 14 Nov 2024 09:57:06 -0800 Subject: [PATCH] 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 --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7eecc75..93a2f9b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: golang:latest stages: - build + - test compile: stage: build @@ -11,3 +12,13 @@ compile: paths: - bingobot - start.sh + +tests-state-pkg: + stage: test + script: + - go test ./internal/state + +tests-config-pkg: + stage: test + script: + - go test ./internal/config