From 0dd579d6c2dbf034771749642263f63d144bd679 Mon Sep 17 00:00:00 2001 From: Steve Breker Date: Wed, 23 Aug 2023 14:24:13 -0700 Subject: [PATCH] Install npm in CI without sudo For Cypress CI integration-tests do not run 'npm install' with 'sudo'. --- .github/workflows/integration-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index b3be038b91..d3f5abb7a5 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -47,14 +47,14 @@ jobs: ~/.cache/Cypress key: npm-${{ hashFiles('package-lock.json') }} - name: Install NPM dependencies - run: sudo npm install -g npm && npm ci + run: npm install -g npm && npm ci - name: Modify Gearman config run: | echo -e "all:\n servers:\n default: 127.0.0.1:63005" \ > apps/qubit/config/gearman.yml - name: Build themes run: | - sudo npm install -g "less@<4.0.0" + npm install -g "less@<4.0.0" make -C plugins/arDominionPlugin make -C plugins/arArchivesCanadaPlugin npm run build