From a516caa8a665b3b0d0dbb5bd7b8a2261d836b5ea Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Fri, 17 Mar 2023 22:37:31 +0100 Subject: [PATCH] Remove k8s 1.21 from test matrix + small syntax error fix (#133) - Remove k8s 1.21 from test matrix - Fix syntax - Improve readability test step Officialy according to readme we support last three k8s versions. Testing last 5 versions should be sufficient. --------- Signed-off-by: Marco Franssen --- .github/workflows/helm-chart-ci.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/helm-chart-ci.yaml b/.github/workflows/helm-chart-ci.yaml index 7cee295..f4aa84f 100644 --- a/.github/workflows/helm-chart-ci.yaml +++ b/.github/workflows/helm-chart-ci.yaml @@ -116,7 +116,6 @@ jobs: - v1.24.7 - v1.23.13 - v1.22.15 - - v1.21.14 values: - ${{ fromJson(needs.build-matrix.outputs.tests) }} @@ -152,18 +151,22 @@ jobs: - name: Run chart-testing (install) run: | - export scenario="$(basename "${TEST_DIR}")" - export EXTRA_HELM_ARGS="" - [ "${scenario}" != "default" ] && kubectl create namespace "${scenario}" post-install() { [ -x "${TEST_DIR}/post-install.sh" ] && "${TEST_DIR}/post-install.sh" $1 exit $1 } + trap 'post-install $? $LINENO' EXIT + + export scenario="$(basename "${TEST_DIR}")" + export EXTRA_HELM_ARGS="" + + [ "${scenario}" != "default" ] && kubectl create namespace "${scenario}" [ -x "${TEST_DIR}/pre-install.sh" ] && "${TEST_DIR}/pre-install.sh" [ -f "${TEST_DIR}/.env" ] && source "${TEST_DIR}/.env" - if [ -x {${TEST_DIR}/install.sh ]; then - ./${TEST_DIR}/install.sh + + if [ -x "${TEST_DIR}/install.sh" ]; then + "${TEST_DIR}/install.sh" else ct install --debug \ --namespace "${scenario}" \