-
Notifications
You must be signed in to change notification settings - Fork 1.4k
32 lines (32 loc) · 1004 Bytes
/
playwright.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/test-setup
with:
node-version: ${{ matrix.env.version || 20 }}
- name: Run Fuel Node
run: (cd templates/nextjs && pnpm run fuels:dev) &
- name: Copy .env.example and create .env.local off it
run: cp templates/nextjs/.env.example templates/nextjs/.env.local
- name: Run Next.js server
run: (cd templates/nextjs && pnpm run dev) &
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: pnpm exec playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30