diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c1fcb2e..767f63d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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" diff --git a/.gitlab/testing.yaml b/.gitlab/testing.yaml new file mode 100644 index 0000000..f0f6c23 --- /dev/null +++ b/.gitlab/testing.yaml @@ -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"