This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ozone-helm-charts.git


The following commit(s) were added to refs/heads/main by this push:
     new 20bd837  HDDS-15721. Use chart-testing via Docker (#36)
20bd837 is described below

commit 20bd837d151c64042aa68ca95242fb56afe68f4f
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Thu Jul 2 07:28:00 2026 +0200

    HDDS-15721. Use chart-testing via Docker (#36)
---
 .github/workflows/test.yaml | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index c38c478..7104d6f 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -22,6 +22,10 @@ on:
 
 permissions: { }
 
+env:
+  CT_IMAGE: quay.io/helmpack/chart-testing:v3.14.0
+  DOCKER_COMMAND: docker run --network host --rm -w /data
+
 jobs:
   test:
     runs-on: ubuntu-latest
@@ -33,21 +37,14 @@ jobs:
           persist-credentials: false
           submodules: recursive
 
-      - name: Set up Helm
-        uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # 
v5.0.0
-
-      - name: Set up Python
-        uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # 
v6.2.0
-        with:
-          python-version: 3.x
-
       - name: Set up chart-testing
-        uses: 
helm/chart-testing-action@6ec842c01de15ebb84c8627d2744a0c2f2755c9f # v2.8.0
+        run: |
+          docker pull $CT_IMAGE
 
       - name: Find changes (PR)
         if: github.event_name == 'pull_request'
         run: |
-          changed=$(ct list-changed --target-branch "$base_ref")
+          changed=$($DOCKER_COMMAND -v $(pwd):/data --user $(id -u) $CT_IMAGE 
ct list-changed --target-branch "$base_ref")
           if [[ -n "$changed" ]]; then
             echo "test_scope=--target-branch '$base_ref'" >> "$GITHUB_ENV"
           fi
@@ -61,7 +58,13 @@ jobs:
 
       - name: Run chart-testing (lint)
         if: env.test_scope != ''
-        run: ct lint $test_scope --validate-maintainers=false 
--check-version-increment=false
+        run: |
+          $DOCKER_COMMAND -v $(pwd):/data $CT_IMAGE \
+              ct lint $test_scope --validate-maintainers=false 
--check-version-increment=false
+
+      - name: Set up Helm
+        if: env.test_scope != ''
+        uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # 
v5.0.0
 
       - name: Create kind cluster
         if: env.test_scope != ''
@@ -69,4 +72,6 @@ jobs:
 
       - name: Run chart-testing (install)
         if: env.test_scope != ''
-        run: ct install $test_scope
+        run: |
+          $DOCKER_COMMAND -v $(pwd):/data -v 
~/.kube/config:/root/.kube/config:ro $CT_IMAGE \
+              ct install $test_scope


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to