Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 5650cf6

Browse files
committed
fix(playwright.yml): development environment test
1 parent 991102a commit 5650cf6

File tree

1 file changed

+26
-18
lines changed

1 file changed

+26
-18
lines changed

.github/workflows/playwright.yml

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [main, master]
55
pull_request:
6-
branches: [ main, master ]
6+
branches: [main, master]
77
jobs:
88
test:
99
timeout-minutes: 60
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: lts/*
16-
- name: Install dependencies
17-
run: npm install -g pnpm && pnpm install
18-
- name: Install Playwright Browsers
19-
run: pnpm exec playwright install --with-deps
20-
- name: Run Playwright tests
21-
run: pnpm exec playwright test
22-
- uses: actions/upload-artifact@v4
23-
if: always()
24-
with:
25-
name: playwright-report
26-
path: playwright-report/
27-
retention-days: 30
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: lts/*
16+
- name: Install dependencies
17+
run: npm install -g pnpm && pnpm install
18+
- name: Install dependencies for e2e/site
19+
run: |
20+
cd e2e/site
21+
npm install
22+
- name: Install Playwright Browsers
23+
run: pnpm exec playwright install --with-deps
24+
- name: Start Next.js Dev Server
25+
run: pnpm run dev:e2e &
26+
env:
27+
CI: true
28+
- name: Run Playwright tests
29+
run: pnpm exec playwright test
30+
- uses: actions/upload-artifact@v4
31+
if: always()
32+
with:
33+
name: playwright-report
34+
path: playwright-report/
35+
retention-days: 30

0 commit comments

Comments
 (0)