Skip to content

Commit e8bd4f2

Browse files
authored
Merge pull request #332 from wpengine/chore-remove-npm-for-e2e
chore: DRAFT - Updating e2e tests to use pnpm.
2 parents 9fbe495 + 026989b commit e8bd4f2

File tree

5 files changed

+1670
-24816
lines changed

5 files changed

+1670
-24816
lines changed

.github/workflows/e2e-test.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,14 @@ jobs:
8585
uses: actions/setup-node@v4
8686
with:
8787
node-version: "22"
88-
cache: "npm"
8988

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

9397
- name: Setup PHP with Cached Composer
9498
uses: ./.github/actions/setup-php-composer
@@ -98,18 +102,18 @@ jobs:
98102
composer-options: '--no-progress --optimize-autoloader --no-dev'
99103

100104
- name: Install playwright browsers
101-
run: npx playwright install --with-deps
105+
run: pnpm dlx playwright install --with-deps
102106
working-directory: plugins/${{ env.PLUGIN }}
103107

104108
- name: Start wp-env
105109
run: |
106-
npm run wp-env start
110+
pnpm wp-env start
107111
working-directory: plugins/${{ env.PLUGIN }}
108112

109113
- name: Run Playwright tests
110-
run: npm run test:e2e
114+
run: pnpm test:e2e
111115
working-directory: plugins/${{ env.PLUGIN }}
112116

113117
- name: Stop wp-env
114-
run: npm run wp-env stop
118+
run: pnpm wp-env stop
115119
working-directory: plugins/${{ env.PLUGIN }}

0 commit comments

Comments
 (0)