Skip to content

Commit 988d99e

Browse files
authored
ci: add visual regression tests (#1614)
1 parent f31ac4b commit 988d99e

File tree

9 files changed

+2827
-468
lines changed

9 files changed

+2827
-468
lines changed

.github/workflows/argos.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Argos CI Screenshots
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
take-screenshots:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out repository code
14+
uses: actions/checkout@v4
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: current
20+
21+
- name: Install dependencies
22+
run: npm i
23+
24+
- name: Install Playwright browsers
25+
run: npm exec playwright install --with-deps chromium
26+
27+
- name: Build the website
28+
run: npm run build
29+
30+
- name: Take screenshots with Playwright
31+
run: npm exec playwright test -- --config playwright-argos.config.ts
32+
33+
- name: Upload screenshots to Argos
34+
run: npm exec argos upload ./screenshots

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ playwright-report/
3131
.vercel/
3232

3333
.vercel
34-
.bin/
34+
.bin/
35+
36+
screenshots

0 commit comments

Comments
 (0)