chore(playwright): screenshots are now ignored locally (#25043)

This commit is contained in:
Liam DeBeasi
2022-04-01 12:06:40 -04:00
committed by GitHub
parent 2af24494f5
commit 12fd19dd4d
2 changed files with 8 additions and 1 deletions

View File

@@ -25,10 +25,16 @@ runs:
# Configure user as Ionitron
# and push only the changed .png snapshots
# to the remote branch.
# Screenshots are in .gitignore
# to prevent local screenshots from getting
# pushed to Git. As a result, we need --force
# here so that CI generated screenshots can
# get added to git. Screenshot ground truths
# should only be added via this CI process.
run: |
git config user.name ionitron
git config user.email hi@ionicframework.com
git add src/\*.png
git add src/\*.png --force
git commit -m "chore(): add updated snapshots"
git push
shell: bash