Skip to content

Commit 1c270d6

Browse files
committed
test: init e2e tests
1 parent 7b210af commit 1c270d6

File tree

12 files changed

+49982
-807
lines changed

12 files changed

+49982
-807
lines changed

.github/workflows/e2e-test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Playwright End-to-End Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "plugins/hwp-previews/**"
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- "plugins/hwp-previews/**"
14+
15+
jobs:
16+
playwright-tests:
17+
runs-on: ubuntu-24.04
18+
defaults:
19+
run:
20+
working-directory: plugins/hwp-previews
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: "22"
30+
cache: "npm"
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Install playwright browsers
36+
run: npx playwright install --with-deps
37+
38+
- name: Start wp-env
39+
run: |
40+
npm run wp-env -- start
41+
42+
- name: Run Playwright tests
43+
run: npm run test:e2e
44+
45+
- name: Stop wp-env
46+
run: npm wp-env -- stop

0 commit comments

Comments
 (0)