Capture Linux visual baselines #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |