Skip to content

Commit d7a96fd

Browse files
committed
ci: use npx for playwright
1 parent c605507 commit d7a96fd

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55

66
jobs:
77
test:
8+
timeout-minutes: 60
89
runs-on: macos-latest
910
steps:
1011
- uses: actions/checkout@v6
12+
- uses: actions/setup-node@v6
13+
with:
14+
node-version: 22
1115
- uses: oven-sh/setup-bun@v2
1216
- uses: actions/cache@v5
1317
id: playwright-cache
@@ -18,15 +22,22 @@ jobs:
1822
- name: Install dependencies
1923
run: bun ci
2024

21-
- name: Install Playwright binaries
22-
run: bunx playwright install --with-deps
25+
- name: Install Playwright Browsers
26+
run: npx playwright install --with-deps
2327
if: steps.playwright-cache.outputs.cache-hit != 'true'
2428

2529
- name: Run unit tests
2630
run: bun run test:types
2731

28-
- name: Run e2e tests
29-
run: bun run test:e2e
32+
- name: Run Playwright tests
33+
run: npx playwright test
34+
35+
- uses: actions/upload-artifact@v4
36+
if: ${{ !cancelled() }}
37+
with:
38+
name: playwright-report
39+
path: playwright-report/
40+
retention-days: 30
3041

3142
- name: Build docs
3243
if: github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)