From a3e2712d485ba4ef3ac498038a2bf4247e807d66 Mon Sep 17 00:00:00 2001 From: Marco Ebert Date: Sun, 4 Feb 2024 21:42:04 +0100 Subject: [PATCH] CI: Rework unit testing. --- .github/workflows/ci.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1aa19b6c0..2fc97bab0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -221,19 +221,14 @@ jobs: - name: Set up Helm Docs uses: gabe565/setup-helm-docs-action@d5c35bdc9133cfbea3b671acadf50a29029e87c2 # v1.0.4 + - name: Set up Helm Unit Test + run: helm plugin install https://github.com/helm-unittest/helm-unittest + - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 - - name: Install Helm Unit Test Plugin - run: | - helm plugin install https://github.com/helm-unittest/helm-unittest - - - name: Run Helm Unit Tests - run: | - helm unittest charts/ingress-nginx -d - - name: Lint chart run: | ct lint --config .ct.yaml @@ -244,6 +239,9 @@ jobs: helm-docs --chart-search-root charts git diff --exit-code charts/ingress-nginx/README.md + - name: Run tests + run: helm unittest charts/ingress-nginx + chart-test: name: Chart / Test runs-on: ubuntu-latest