File tree Expand file tree Collapse file tree 5 files changed +1670
-24816
lines changed
Expand file tree Collapse file tree 5 files changed +1670
-24816
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments