Skip to content

Commit

Permalink
ci: add visual regression tests (#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Apr 20, 2024
1 parent f31ac4b commit 988d99e
Show file tree
Hide file tree
Showing 9 changed files with 2,827 additions and 468 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/argos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Argos CI Screenshots

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
take-screenshots:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: current

- name: Install dependencies
run: npm i

- name: Install Playwright browsers
run: npm exec playwright install --with-deps chromium

- name: Build the website
run: npm run build

- name: Take screenshots with Playwright
run: npm exec playwright test -- --config playwright-argos.config.ts

- name: Upload screenshots to Argos
run: npm exec argos upload ./screenshots
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ playwright-report/
.vercel/

.vercel
.bin/
.bin/

screenshots
Loading

0 comments on commit 988d99e

Please sign in to comment.