-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.27 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 🎭 Playwright
on:
deployment_status:
jobs:
playwright:
name: 🎭 Playwright
if: github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
timeout-minutes: 60
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🧪 Copy test env vars
run: cp apps/web/.env.example apps/web/.env
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: 🌐 Setup node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: pnpm
- name: 📥 Download deps
run: pnpm install --prefer-offline --frozen-lockfile
- name: 📥 Install Playwright Browsers
run: pnpm dlx playwright install --with-deps
- name: 🎭 Playwright tests
run: pnpm run test:e2e
env:
BASE_URL: ${{ github.event.deployment_status.target_url }}
- name: 📊 Upload report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: packages/playwright/playwright-report/
retention-days: 30