-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Use
reg-actions
for visual regression testing
- Loading branch information
1 parent
62eb891
commit 6a4d330
Showing
12 changed files
with
17,150 additions
and
12,745 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,26 @@ | ||
# SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors | ||
# SPDX-License-Identifier: CC0-1.0 | ||
name: 'Compare Storybooks' | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
visual-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: npm install storycap puppeteer http-server | ||
working-directory: ./frontend | ||
- name: Capture screenshots | ||
run: | ||
npx storycap http://localhost:6006 --serverCmd "npx -p @angular/cli | ||
ng run capellacollab:storybook" | ||
working-directory: ./frontend | ||
- uses: reg-viz/reg-actions@v2 | ||
with: | ||
github-token: '${{ secrets.GITHUB_TOKEN }}' | ||
image-directory-path: './frontend/__screenshots__' | ||
outdated-comment-action: minimize | ||
matching-threshold: 0.1 | ||
retention-days: 90 |
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
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 |
---|---|---|
|
@@ -64,3 +64,7 @@ storybook-static | |
documentation.json | ||
|
||
.nx | ||
|
||
__screenshots__ | ||
.reg | ||
y |
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
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
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
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
Oops, something went wrong.