-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.27 KB
/
Copy pathvisual-baseline.yml
File metadata and controls
35 lines (32 loc) · 1.27 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
name: Capture Linux visual baselines
on:
workflow_dispatch:
permissions:
contents: read
jobs:
capture:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.62.0-noble@sha256:baed2032d533817f3dbe6425de795788430ba345e819a1201337009ba17c9d07
options: --ipc=host
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: npm
- run: npm ci
- name: Generate Linux goldens
# --update-snapshots defaults to "changed", which leaves a golden in
# place whenever the rendered diff stays under maxDiffPixelRatio. A
# brand or copy change can hide there. This workflow exists to produce
# the reviewed goldens, so it always rewrites all of them.
run: npm run test:visual --workspace @able/desk -- --update-snapshots=all
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: able-linux-visual-baselines
path: apps/desk/test/visual/snapshots/linux/
if-no-files-found: error
retention-days: 7