-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.02 KB
/
screenshots.yml
File metadata and controls
46 lines (37 loc) · 1.02 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
name: Update Screenshots
on:
push:
branches: [main]
paths:
- 'app/**'
- 'e2e/**'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
screenshots:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: '1'
- name: Install dependencies
run: bun install
- name: Install Playwright browsers
run: bunx playwright install --with-deps chromium
- name: Run screenshot tests
run: bun run test:e2e
env:
TEST_PGLITE: 'true'
- name: Commit updated screenshots
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docs/screenshots/
git diff --staged --quiet || git commit -m "chore: update screenshots [skip ci]"
git push