Skip to content
Snippets Groups Projects
Verified Commit db25cbab authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

ci(charts): Add automatic unit-tests for helm charts

This patch introduces the CI integration for helm-unittest, a nice helm
plugin, which allows to run automatic tests on helm charts and
validating the YAML based on individual settings with clear reports in
gitlab.
parent 7d4222b5
Loading
......@@ -4,6 +4,7 @@ include:
- local: 'charts/.utils/gitlab-ci.yaml'
stages:
- build
- test
- changelog
- release
......
......@@ -17,3 +17,23 @@ chart-build-keycloak:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
changes:
- charts/${CHART}/Chart.yaml
chart-helm-unittest:
stage: test
extends: .chart-matrix
image:
name: docker.io/quintush/helm-unittest:3.10.0-0.2.9
entrypoint: [""]
script:
- helm unittest -3 -o helm-unittest.xml -t junit charts/${CHART}
artifacts:
when: always
reports:
junit:
- helm-unittest.xml
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
changes:
- charts/${CHART}/**/*
exists:
- charts/${CHART}/tests/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment