feat: add testing stage

This commit is contained in:
Simon Cornet 2025-07-18 14:40:23 +02:00
commit a6424fbf97
2 changed files with 22 additions and 1 deletions

View file

@ -6,6 +6,7 @@ stages:
# deployment
- "gitleaks"
- "linting"
- "testing"
- "deployment"
@ -13,8 +14,9 @@ stages:
include:
# deployment
- local: ".gitlab/gitleaks.yaml"
- local: ".gitlab/deployment.yaml"
- local: ".gitlab/gitleaks.yaml"
- local: ".gitlab/testing.yaml"
# linting
- component: "$CI_SERVER_FQDN/components/ansible/linting@v2.0.1"

19
.gitlab/testing.yaml Normal file
View file

@ -0,0 +1,19 @@
---
stages:
- "test"
variables:
DOCKER_DRIVER: "overlay2"
molecule:
stage: "test"
image: "cr.simoncor.net/siempie/molecule-ci:v25.07.18"
services:
- "docker:dind"
variables:
DOCKER_HOST: "tcp://docker:2375/"
ANSIBLE_FORCE_COLOR: "true"
PY_COLORS: "1"
script:
- "molecule test"