Skip to content

Commit

Permalink
feat(ci): run Helm unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoscode committed Jul 5, 2023
1 parent 6cd5d6c commit f11f824
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/chart-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -34,17 +37,24 @@ jobs:
- name: Set up chart-testing
uses: helm/[email protected]

- name: Install Task
uses: arduino/setup-task@v1

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
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/[email protected]
Expand Down

0 comments on commit f11f824

Please sign in to comment.