Introduce first version of automatic helm chart tests #13
Workflow file for this run
This file contains 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 validation | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'helm/*' | |
- '.github/workflows/helm-chart.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'helm/*' | |
- '.github/workflows/helm-chart.yml' | |
jobs: | |
lint: | |
name: Lint and install chart | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
chart-values: | |
- 'helm/flowforge/values.yaml' | |
- './.github/configs/chart-ci-values.yaml' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.13.2 | |
- name: Install Python | |
uses: actions/[email protected] | |
with: | |
python-version: 3.9 | |
- name: Set up chart-testing | |
uses: helm/[email protected] | |
- name: Add bitami repo | |
run: helm repo add bitnami https://charts.bitnami.com/bitnami | |
- name: Lint helm chart | |
run: | | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
ct lint --config ./.github/configs/chart-testing.yaml | |
- name: Create kind cluster | |
uses: helm/[email protected] | |
- name: Label cluster nodes | |
run: | | |
for node in $(kubectl get nodes -o name); do | |
kubectl label --overwrite $node "role=management" | |
done | |
- name: Run chart-testing (install) | |
run: ct install --config ./.github/configs/chart-testing.yaml --helm-extra-args "--values ${{ matrix.chart-values }}" |