-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1006 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (32 loc) · 1006 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: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
# The image ships the browsers, so the suite runs on the same engines locally
# and here. Node comes from the image too: a second toolchain would resolve a
# different Playwright than the one the browsers were installed for.
container:
image: mcr.microsoft.com/playwright:v1.62.1-noble
options: --user root
env:
# Firefox refuses to launch when $HOME is not owned by the current user.
HOME: /root
steps:
- uses: actions/checkout@v7
- run: npm ci
- run: npm run typecheck
- run: npm run build
- run: npm run docs:build
- run: npm run docs:check
# Visual baselines are per platform; only linux ones are comparable here.
- run: npm test
- uses: actions/upload-artifact@v7
if: failure()
with:
name: playwright-report
path: playwright-report/
retention-days: 7