Skip to content

Commit 1c720bc

Browse files
committed
Updated e2e example test to only run when there is a change within the example directory
1 parent 6158775 commit 1c720bc

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: E2E Test Packages
22

33
on:
44
pull_request:
5-
paths-ignore:
6-
- '**/*.md'
5+
paths:
6+
- 'examples/next/**'
77

88
jobs:
99
e2e-test-faustwp-getting-started-example:
@@ -37,12 +37,11 @@ jobs:
3737
# and use the PR branch to pull the correct example URL
3838
- name: npx create next app
3939
run: |
40-
npx degit ${PR_REPO}#${PR_BRANCH} --src=examples/next/faustwp-getting-started e2e-app \
41-
- name: Install e2e dependencies
42-
working-directory: e2e-app
43-
run: |
44-
npm ci
45-
ls -la
40+
npx create-next-app@13 \
41+
-e https://github.com/${PR_REPO}/tree/${PR_BRANCH} \
42+
--example-path examples/next/faustwp-getting-started \
43+
--use-npm \
44+
e2e-app
4645
- name: install and build packages
4746
working-directory: ./
4847
run: |

0 commit comments

Comments
 (0)