-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): automatically update failed snapshots
- Loading branch information
1 parent
b0bef57
commit eb9be52
Showing
2 changed files
with
11 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -19,3 +19,12 @@ jobs: | |
run: sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev | ||
- run: yarn | ||
- run: yarn test | ||
- name: Update failed snapshots | ||
run: | | ||
yarn test:unit -u | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add lib/__snapshots__ | ||
git commit -m "Update snapshots" | ||
git push | ||
if: ${{ failure() }} |
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