-
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 d93e069
Showing
9 changed files
with
17,131 additions
and
12,748 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,22 @@ | ||
# 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" --verbose | ||
working-directory: ./frontend | ||
- uses: reg-viz/reg-actions@v2 | ||
with: | ||
github-token: '${{ secrets.GITHUB_TOKEN }}' | ||
image-directory-path: './frontend/__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
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,5 @@ storybook-static | |
documentation.json | ||
|
||
.nx | ||
|
||
__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
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.