Skip to content

Commit 6158775

Browse files
committed
Fixing npm ci issue for e2e directory
1 parent 1232f78 commit 6158775

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/e2e-next-faustwp-example.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ jobs:
3838
- name: npx create next app
3939
run: |
4040
npx degit ${PR_REPO}#${PR_BRANCH} --src=examples/next/faustwp-getting-started e2e-app \
41-
cd e2e-app \
42-
nvm use \
41+
- name: Install e2e dependencies
42+
working-directory: e2e-app
43+
run: |
4344
npm ci
45+
ls -la
4446
- name: install and build packages
4547
working-directory: ./
4648
run: |
@@ -53,8 +55,8 @@ jobs:
5355
# writing this they do not function as expected on GH actions
5456
- name: replace downloaded registry faust packages with local build
5557
run: |
56-
if [ -d "e2e-app/node_modules/@faustwp/cli" ]; then rm -rf e2e-app/node_modules/@faustwp/cli; fi
57-
if [ -d "e2e-app/node_modules/@faustwp/core" ]; then rm -rf e2e-app/node_modules/@faustwp/core; fi
58+
rm -rf e2e-app/node_modules/@faustwp/cli
59+
rm -rf e2e-app/node_modules/@faustwp/core
5860
cp -r packages/faustwp-cli e2e-app/node_modules/@faustwp/cli
5961
cp -r packages/faustwp-core e2e-app/node_modules/@faustwp/core
6062
chmod +x e2e-app/node_modules/.bin/faust

0 commit comments

Comments
 (0)