File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,22 @@ name: Playwright End-to-End Tests
22
33on :
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
1115jobs :
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
You can’t perform that action at this time.
0 commit comments