From 2f959dad74cb47eb96ed3a8f27e985faead824f6 Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Tue, 29 Aug 2023 09:04:47 +0200 Subject: [PATCH] Install node 18 for OpenShift tests Signed-off-by: Anatolii Bazko --- .ci/oc-common.sh | 10 ++++++++++ .ci/oc-test-chectl.sh | 1 + .ci/oc-test-happy-path.sh | 1 + 3 files changed, 12 insertions(+) diff --git a/.ci/oc-common.sh b/.ci/oc-common.sh index ad13fe2b5..f91a552b8 100755 --- a/.ci/oc-common.sh +++ b/.ci/oc-common.sh @@ -29,6 +29,16 @@ catchFinish() { exit $result } +installNodeVersion() { + local version=$1 + + curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.35.3/install.sh | bash + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + nvm install ${version + nvm use ${version +} + collectEclipseCheLogs() { mkdir -p ${ARTIFACTS_DIR}/che-logs ${CHECTL_REPO}/bin/run server:logs --directory ${ARTIFACTS_DIR}/che-logs --telemetry off diff --git a/.ci/oc-test-chectl.sh b/.ci/oc-test-chectl.sh index 69a4faf66..90cfeafd8 100755 --- a/.ci/oc-test-chectl.sh +++ b/.ci/oc-test-chectl.sh @@ -23,4 +23,5 @@ runTests() { yarn test --coverage=false --forceExit --testRegex=${CHECTL_REPO}/test/e2e/e2e.test.ts } +installNodeVersion 18.17.0 runTests diff --git a/.ci/oc-test-happy-path.sh b/.ci/oc-test-happy-path.sh index 453f3884d..ba6bd26eb 100755 --- a/.ci/oc-test-happy-path.sh +++ b/.ci/oc-test-happy-path.sh @@ -48,4 +48,5 @@ EOF bash <(curl -s ${DEVWORKSPACE_HAPPY_PATH}/remote-launch.sh) } +installNodeVersion 18.17.0 runTests