Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: add test workflow for gateway helm

Sheen Capadnganab78a79415b1
diff --git a/.github/workflows/release_helm_gateway.yaml b/.github/workflows/release_helm_gateway.yaml
index 1b067bd737..85f61c4c66 100644
--- a/.github/workflows/release_helm_gateway.yaml
+++ b/.github/workflows/release_helm_gateway.yaml
@@ -1,27 +1,70 @@
name: Release Gateway Helm Chart
on:
- workflow_dispatch:
+ workflow_dispatch:
jobs:
- release-helm:
- name: Release Helm Chart
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Install Helm
- uses: azure/setup-helm@v3
- with:
- version: v3.10.0
-
- - name: Install python
- uses: actions/setup-python@v4
-
- - name: Install Cloudsmith CLI
- run: pip install --upgrade cloudsmith-cli
-
- - name: Build and push helm package to CloudSmith
- run: cd helm-charts && sh upload-gateway-cloudsmith.sh
- env:
- CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
+ 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/[email protected]
+ with:
+ version: v3.17.0
+
+ - uses: actions/[email protected]
+ with:
+ python-version: "3.x"
+ check-latest: true
+
+ - name: Set up chart-testing
+ uses: helm/[email protected]
+
+ - name: Run chart-testing (lint)
+ run: ct lint --config ct.yaml --charts helm-charts/infisical-gateway
+
+ - name: Create kind cluster
+ uses: helm/[email protected]
+
+ - 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
+
+ release-helm:
+ name: Release Helm Chart
+ needs: test-helm
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Install Helm
+ uses: azure/setup-helm@v3
+ with:
+ version: v3.10.0
+
+ - name: Install python
+ uses: actions/setup-python@v4
+
+ - name: Install Cloudsmith CLI
+ run: pip install --upgrade cloudsmith-cli
+
+ - name: Build and push helm package to CloudSmith
+ run: cd helm-charts && sh upload-gateway-cloudsmith.sh
+ env:
+ CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}