-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add visual regression tests (#1614)
- Loading branch information
Showing
9 changed files
with
2,827 additions
and
468 deletions.
There are no files selected for viewing
This file contains 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
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 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,6 @@ playwright-report/ | |
.vercel/ | ||
|
||
.vercel | ||
.bin/ | ||
.bin/ | ||
|
||
screenshots |
Oops, something went wrong.