-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1003 Bytes
/
playwright.yml
File metadata and controls
34 lines (34 loc) · 1003 Bytes
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
name: Playwright Tests
on: [push, pull_request]
env:
PIP_EXTRA_INDEX_URL: ${{vars.PIP_EXTRA_INDEX_URL}}
UV_PROJECT_ENVIRONMENT: venv
jobs:
playwright:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
project: ["chromium", "firefox", "webkit"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install backend dependencies
run: uv sync --group=deploy
- uses: actions/setup-node@v6
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: |
npm install -D @playwright/test@latest
npx playwright install --with-deps ${{matrix.project}}
- name: Run Playwright tests
run: |
source venv/bin/activate
npx playwright test --project=${{matrix.project}} --reporter github