-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (52 loc) · 1.4 KB
/
playwright.yml
File metadata and controls
65 lines (52 loc) · 1.4 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Playwright Tests
on:
# Allow manual trigger
workflow_dispatch:
# Run on pull requests
pull_request:
branches:
- main
# Run on push to main
push:
branches:
- main
# Run daily at 07:00 UTC to catch regressions, e.g. due to dependency updates
schedule:
- cron: "0 7 * * *" # Every day at 07:00 UTC
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: ".python-version"
- name: Build website
run: uv run quarto render --output-dir _site
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: npm test
- name: Upload Playwright Report
uses: actions/upload-artifact@v7
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30