(tests) Allow for Charts to be flagged for skipping install tests
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user