mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 09:26:47 +00:00
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
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/[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]
|
|
with:
|
|
yamale_version: "6.0.0"
|
|
|
|
- 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
|