Skip to content

Commit 2b604a4

Browse files
authored
Merge branch 'trunk' into dependabot/npm_and_yarn/lint-staged-16.0.0
2 parents 5b97111 + 900b6e7 commit 2b604a4

File tree

11 files changed

+1155
-251
lines changed

11 files changed

+1155
-251
lines changed

.github/workflows/e2e-test.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: End-to-End Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- trunk
7+
- 'release/**'
8+
- 'add/setup-e2e-tests'
9+
paths:
10+
- '.github/workflows/e2e-test.yml'
11+
- 'plugins/auto-sizes/**'
12+
- '**/package.json'
13+
- 'package-lock.json'
14+
- 'composer.json'
15+
- 'composer.lock'
16+
pull_request:
17+
paths:
18+
- '.github/workflows/e2e-test.yml'
19+
- 'plugins/auto-sizes/**'
20+
- '**/package.json'
21+
- 'package-lock.json'
22+
- 'composer.json'
23+
- 'composer.lock'
24+
types:
25+
- opened
26+
- reopened
27+
- synchronize
28+
29+
jobs:
30+
e2e-test:
31+
name: E2E Tests
32+
runs-on: ubuntu-latest
33+
timeout-minutes: 20
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
38+
- name: Setup Node.js (.nvmrc)
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version-file: '.nvmrc'
42+
cache: npm
43+
44+
- name: Install npm dependencies
45+
run: npm ci
46+
47+
- name: Build assets
48+
run: npm run build
49+
50+
- name: Install Playwright dependencies
51+
run: npx playwright install chromium --with-deps
52+
53+
- name: Install WordPress
54+
run: npm run wp-env start
55+
56+
- name: Run tests
57+
env:
58+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
59+
run: npm run test-e2e

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
############
44

55
plugins/*/tests/**/actual.html
6+
artifacts
7+
test-results
68

79
############
810
## IDEs

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)