diff --git a/.github/workflows/chart-lint.yml b/.github/workflows/chart-lint.yml index c79eb4d4b..1c492e45d 100644 --- a/.github/workflows/chart-lint.yml +++ b/.github/workflows/chart-lint.yml @@ -16,16 +16,19 @@ jobs: fetch-depth: 0 - name: Set up Helm - uses: azure/setup-helm@v1 + uses: azure/setup-helm@v3 with: - version: v3.9.3 + version: v3.11.3 - - name: Add Helm repos + - name: Update Helm dependencies run: | cd charts/managed-identity-wallet - helm repo add bitnami https://charts.bitnami.com/bitnami helm dependency update + - name: Install Helm unittest plugin + run: | + helm plugin install https://github.com/helm-unittest/helm-unittest.git + # Setup python as a prerequisite for chart linting - uses: actions/setup-python@v2 with: @@ -34,6 +37,9 @@ jobs: - name: Set up chart-testing uses: helm/chart-testing-action@v2.3.1 + - name: Install Task + uses: arduino/setup-task@v1 + - name: Run chart-testing (list-changed) id: list-changed run: | @@ -41,10 +47,14 @@ jobs: if [[ -n "$changed" ]]; then echo "::set-output name=changed::true" fi + # run chart linting - name: Run chart-testing (lint) run: ct lint --target-branch ${{ github.event.repository.default_branch }} --config charts/chart-testing-config.yaml + - name: Run Helm unittests + run: task helm:unittest + # Preparing a kind cluster to install and test charts on - name: Create kind cluster uses: helm/kind-action@v1.4.0