(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
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
1 changed files with 7 additions and 7 deletions

View File

@ -85,12 +85,12 @@ jobs:
train="incubator"
fi
echo ::set-output name=train::${train}
if test -d "./charts/${train}/${{ matrix.app }}/tests/"; then
unittests='true'
echo "::set-output name=unittests::true"
if test -f "./charts/${train}/${{ matrix.app }}/SKIPINSTALL"; then
install='false'
echo "::set-output name=install::false"
else
unittests="false"
echo "::set-output name=unittests::false"
install="true"
echo "::set-output name=install::true"
fi
- 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 }}'
- 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
with:
version: v1.22.2+k3s1
## TODO: Fix common-test
- 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 }}'
app-tests-complete: