Commit cdb2dfa4 authored by Alex Williams's avatar Alex Williams Committed by David McKay

Use latest version of helm/chart-testing-action config

parent a0930e94
......@@ -12,19 +12,35 @@ jobs:
- name: Fetch history
run: git fetch --prune --unshallow
- name: Run chart-testing (lint)
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install chart-testing tools
id: lint
uses: helm/chart-testing-action@v2.0.1
with:
command: lint
config: ct.yaml
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint
- name: Create kind cluster
uses: helm/kind-action@v1.0.0-alpha.3
uses: helm/kind-action@v1.0.0
with:
installLocalPathProvisioner: true
# Only build a kind cluster if there are chart changes to test.
if: steps.lint.outputs.changed == 'true'
if: steps.list-changed.outputs.changed == 'true'
# Our Enterprise chart requires some resources created
- name: Create Enterprise Test Resources
......@@ -32,10 +48,10 @@ jobs:
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.15.1/cert-manager.yaml
sleep 30 # wait for CertManager
kubectl apply -f ./charts/influxdb-enterprise/example-resources.yaml
if: steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (install)
uses: helm/chart-testing-action@v2.0.1
with:
command: install
run: ct install
env:
INFLUXDB_ENTERPRISE_LICENSE_KEY: "${{ secrets.INFLUXDB_ENTERPRISE_LICENSE_KEY }}"
if: steps.list-changed.outputs.changed == 'true'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment