Skip to content

Commit

Permalink
Install node 18 for OpenShift tests
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Aug 29, 2023
1 parent 0da76c4 commit 2f959da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .ci/oc-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .ci/oc-test-chectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ runTests() {
yarn test --coverage=false --forceExit --testRegex=${CHECTL_REPO}/test/e2e/e2e.test.ts
}

installNodeVersion 18.17.0
runTests
1 change: 1 addition & 0 deletions .ci/oc-test-happy-path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ EOF
bash <(curl -s ${DEVWORKSPACE_HAPPY_PATH}/remote-launch.sh)
}

installNodeVersion 18.17.0
runTests

0 comments on commit 2f959da

Please sign in to comment.