Skip to content

Commit

Permalink
Use proper npm version to run app tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelDeMartin committed Jul 3, 2023
1 parent f1068ad commit 3420635
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/app-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ then

if [[ $RUNTIME = ionic5 ]];
then
docker run --volume $basedir/app:/app --workdir /app node:14 bash -c "npm install npm@7 -g && npm ci"
if [[ ! -f $basedir/app/.npmrc || -z "$(cat $basedir/app/.npmrc | grep unsafe-perm)" ]];
then
echo -e "\nunsafe-perm=true" >> $basedir/app/.npmrc
fi

docker run --volume $basedir/app:/app --workdir /app node:14 bash -c "npm ci"
else
docker run --volume $basedir/app:/app --workdir /app node:11 npm run setup
docker run --volume $basedir/app:/app --workdir /app node:11 npm ci
Expand Down

0 comments on commit 3420635

Please sign in to comment.