Skip to content

Commit b1a8fbf

Browse files
committed
Updating e2e tests to use pnpm.
1 parent ca97a06 commit b1a8fbf

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/e2e-test.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ jobs:
8787
node-version: "22"
8888
cache: "npm"
8989

90-
- name: Install dependencies
91-
run: npm install
90+
- name: Setup pnpm
91+
uses: pnpm/action-setup@v3
92+
with:
93+
version: 10 # Min version required by the repo
9294

9395
- name: Setup PHP with Cached Composer
9496
uses: ./.github/actions/setup-php-composer
@@ -98,18 +100,18 @@ jobs:
98100
composer-options: '--no-progress --optimize-autoloader --no-dev'
99101

100102
- name: Install playwright browsers
101-
run: npx playwright install --with-deps
103+
run: pnpm playwright install --with-deps
102104
working-directory: plugins/${{ env.PLUGIN }}
103105

104106
- name: Start wp-env
105107
run: |
106-
npm run wp-env start
108+
pnpm run wp-env start
107109
working-directory: plugins/${{ env.PLUGIN }}
108110

109111
- name: Run Playwright tests
110-
run: npm run test:e2e
112+
run: pnpm run test:e2e
111113
working-directory: plugins/${{ env.PLUGIN }}
112114

113115
- name: Stop wp-env
114-
run: npm run wp-env stop
116+
run: pnpm run wp-env stop
115117
working-directory: plugins/${{ env.PLUGIN }}

plugins/hwp-previews/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
"wp-env": "wp-env",
1111
"version": "./bin/sync-package-version.sh"
1212
},
13-
"keywords": [],
13+
"keywords": [
14+
"wordpress",
15+
"headless",
16+
"previews",
17+
"plugin"
18+
],
1419
"author": "wpengine",
1520
"license": "GPL-2.0",
1621
"devDependencies": {

0 commit comments

Comments
 (0)