Skip to content

Commit 94a7d66

Browse files
committed
test: update workflow
1 parent e2bce02 commit 94a7d66

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/e2e-test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@ name: Playwright End-to-End Tests
22

33
on:
44
push:
5+
branches:
6+
- main
7+
paths:
8+
- "plugins/hwp-previews/**"
59
pull_request:
610
branches:
711
- main
812
paths:
9-
- "plugins/**"
13+
- "plugins/hwp-previews/**"
1014

1115
jobs:
1216
playwright-tests:
1317
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
working-directory: plugins/hwp-previews
1421

1522
steps:
1623
- name: Checkout code
@@ -26,14 +33,14 @@ jobs:
2633
run: npm ci
2734

2835
- name: Install playwright browsers
29-
run: npx playwright install --with-deps
36+
run: npx playwright install chromium --with-deps
3037

3138
- name: Start wp-env
3239
run: |
33-
npm run wp-env start
40+
npm run wp-env -- start
3441
3542
- name: Run Playwright tests
3643
run: npm run test:e2e
3744

3845
- name: Stop wp-env
39-
run: npx wp-env stop
46+
run: npm wp-env -- stop

0 commit comments

Comments
 (0)