(tests) Allow for Charts to be flagged for skipping install tests

This commit is contained in:
kjeld Schouten-Lebbing
2021-10-10 15:06:42 +02:00
parent ba0c1e7dd6
commit 311c4c832c
+7 -7
View File
@@ -85,12 +85,12 @@ jobs:
train="incubator" train="incubator"
fi fi
echo ::set-output name=train::${train} echo ::set-output name=train::${train}
if test -d "./charts/${train}/${{ matrix.app }}/tests/"; then if test -f "./charts/${train}/${{ matrix.app }}/SKIPINSTALL"; then
unittests='true' install='false'
echo "::set-output name=unittests::true" echo "::set-output name=install::false"
else else
unittests="false" install="true"
echo "::set-output name=unittests::false" echo "::set-output name=install::true"
fi fi
- name: Install Helm - name: Install Helm
@@ -124,14 +124,14 @@ jobs:
run: ct lint --config .github/ct-lint.yaml --charts 'charts/${{ steps.prep-lint.outputs.train }}/${{ matrix.app }}' run: ct lint --config .github/ct-lint.yaml --charts 'charts/${{ steps.prep-lint.outputs.train }}/${{ matrix.app }}'
- name: Create k3d cluster - name: Create k3d cluster
if: ${{ matrix.app != 'common' && matrix.app != '.gitkee' }} if: ${{ matrix.app != 'common' && matrix.app != '.gitkee' && steps.prep-lint.outputs.install != 'false' }}
uses: nolar/setup-k3d-k3s@v1 uses: nolar/setup-k3d-k3s@v1
with: with:
version: v1.22.2+k3s1 version: v1.22.2+k3s1
## TODO: Fix common-test ## TODO: Fix common-test
- name: Run chart-testing (install) - name: Run chart-testing (install)
if: ${{ matrix.app != 'common' && matrix.app != '.gitkee' }} if: ${{ matrix.app != 'common' && matrix.app != '.gitkee' && steps.prep-lint.outputs.install != 'false' }}
run: ct install --config .github/ct-install.yaml --charts 'charts/${{ steps.prep-lint.outputs.train }}/${{ matrix.app }}' run: ct install --config .github/ct-install.yaml --charts 'charts/${{ steps.prep-lint.outputs.train }}/${{ matrix.app }}'
app-tests-complete: app-tests-complete: