Skip to content

Commit 788e34d

Browse files
committed
ci: use filter instead of relying on working-directory due to weird behavior
1 parent 7ef4f77 commit 788e34d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,15 @@ jobs:
170170

171171
- name: Download Cypress
172172
if: ${{ contains(matrix.e2e-framework, 'cypress') }}
173-
working-directory: ./playground/cypress
173+
working-directory: ./playground
174174
run: |
175-
pnpm exec cypress cache list
176-
pnpm exec cypress install
175+
pnpm --filter "{cypress}" exec cypress cache list
176+
pnpm --filter "{cypress}" exec cypress install
177177
178178
- if: ${{ contains(matrix.e2e-framework, 'playwright') }}
179179
name: Install Playwright dependencies
180-
working-directory: ./playground/playwright
181-
run: npx playwright install --with-deps
180+
working-directory: ./playground
181+
run: pnpm --filter "{playwright}" exec playwright install --with-deps
182182

183183
# Run `test:e2e` in project folders contain `matrix.e2e-framework`
184184
- name: Run e2e test script

0 commit comments

Comments
 (0)