From 141d0ede2d3a3ab2f253de64023cdbe2b748882c Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Thu, 5 Jun 2025 22:29:54 +0800 Subject: [PATCH] misc: add pr checks for gateway --- ...run-helm-chart-tests-infisical-gateway.yml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/run-helm-chart-tests-infisical-gateway.yml diff --git a/.github/workflows/run-helm-chart-tests-infisical-gateway.yml b/.github/workflows/run-helm-chart-tests-infisical-gateway.yml new file mode 100644 index 000000000..eff42506e --- /dev/null +++ b/.github/workflows/run-helm-chart-tests-infisical-gateway.yml @@ -0,0 +1,49 @@ +name: Run Helm Chart Tests for Gateway +on: + pull_request: + paths: + - "helm-charts/infisical-gateway/**" + - ".github/workflows/run-helm-chart-tests-infisical-gateway.yml" + +jobs: + test-helm: + name: Test Helm Chart + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Helm + uses: azure/setup-helm@v4.2.0 + with: + version: v3.17.0 + + - uses: actions/setup-python@v5.3.0 + with: + python-version: "3.x" + check-latest: true + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.7.0 + + - name: Run chart-testing (lint) + run: ct lint --config ct.yaml --charts helm-charts/infisical-gateway + + - name: Create kind cluster + uses: helm/kind-action@v1.12.0 + + - name: Create namespace + run: kubectl create namespace infisical-gateway + + - name: Create gateway secret + run: kubectl create secret generic infisical-gateway-environment --from-literal=TOKEN=my-test-token -n infisical-gateway + + - name: Run chart-testing (install) + run: | + ct install \ + --config ct.yaml \ + --charts helm-charts/infisical-gateway \ + --helm-extra-args="--timeout=300s" \ + --namespace infisical-gateway