debezium/dbz#1452 Add CI step to verify Debezium Platform helm chart #1
Workflow file for this run
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: Verify Helm Chart | |
| on: | |
| pull_request: | |
| paths: | |
| - "helm/**" | |
| branches: | |
| - main | |
| jobs: | |
| verify-helm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: 'latest' | |
| - name: Get chart dependencies | |
| run: helm dependency update helm/ | |
| - name: Helm lint | |
| run: helm lint helm/ -f examples/example.yaml | |
| - name: Set up kubeconform | |
| run: | | |
| curl -L https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz | |
| sudo mv kubeconform /usr/local/bin/ | |
| - name: Helm template and validate with kubeconform | |
| run: | | |
| helm template debezium-platform helm/ -f examples/example.yaml | kubeconform -strict -summary | |
| - name: Install helm-unittest plugin | |
| run: helm plugin install https://github.com/helm-unittest/helm-unittest.git --verify=false | |
| - name: Run helm unit tests | |
| run: helm unittest helm/ |