From 1bc67b6060e9104fafa66d7f31e53d4434dee6cd Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Fri, 4 Nov 2022 10:43:48 +0000 Subject: [PATCH] run docker for node16 as explained in https://github.com/npm/cli/issues/4451\#issuecomment-1270370747 --- .ci/scripts/run-test-in-docker.sh | 2 ++ .ci/scripts/run-test.sh | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.ci/scripts/run-test-in-docker.sh b/.ci/scripts/run-test-in-docker.sh index 562b4b2f..fc1b6b47 100755 --- a/.ci/scripts/run-test-in-docker.sh +++ b/.ci/scripts/run-test-in-docker.sh @@ -22,6 +22,8 @@ fi # shellcheck disable=SC2086 docker run \ $DOCKER_RUN_OPTIONS \ + --user node \ + -v ~/.npmrc:/home/node/.npmrc \ -v "$(pwd):/synthetics-recorder" \ -e NPM_COMMAND=${1:-'ci'} \ $DOCKER_IMAGE \ diff --git a/.ci/scripts/run-test.sh b/.ci/scripts/run-test.sh index fccccb2f..bd5936fd 100755 --- a/.ci/scripts/run-test.sh +++ b/.ci/scripts/run-test.sh @@ -5,17 +5,8 @@ Xvfb ${DISPLAY} -screen 0 1024x768x16 & set -x -# For debugging purposes -whoami -pwd -echo $HOME -ls -ltra $HOME - # If NPM_COMMAND then run it. if [ -n "${NPM_COMMAND}" ] ; then - # for some reason this folder got permission denied when - # running on the CI workers Installation error: EACCES: permission denied - mkdir -p $HOME/.npm || true npm ${NPM_COMMAND} fi NPM_CONFIG_LOGLEVEL=verbose npm run test