feat: add Helm chart with ct/kind e2e CI #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Helm Chart Test | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "chart/**" | |
| - "ct.yaml" | |
| - ".github/workflows/helm-test.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "chart/**" | |
| - "ct.yaml" | |
| - ".github/workflows/helm-test.yml" | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: azure/setup-helm@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - uses: helm/chart-testing-action@v2 | |
| - name: Lint chart | |
| run: ct lint --config ct.yaml --all | |
| e2e: | |
| name: Install on Kind | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: azure/setup-helm@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - uses: helm/chart-testing-action@v2 | |
| - uses: helm/kind-action@v1 | |
| with: | |
| cluster_name: ct | |
| - name: Build and load image into Kind | |
| run: | | |
| docker build -t ghcr.io/flanksource/facet:test . | |
| kind load docker-image ghcr.io/flanksource/facet:test --name ct | |
| - name: Install and test chart | |
| run: | | |
| ct install --config ct.yaml --all \ | |
| --helm-extra-set-args="--set image.tag=test --set image.pullPolicy=Never" |