feat(test): add visual regression testing

Will upload screenshots on failure.
This commit is contained in:
Leroy Hopson 2024-04-07 00:00:00 +13:00
parent 898d49e392
commit 3ca272c615
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
10 changed files with 105 additions and 1 deletions

View file

@ -305,6 +305,12 @@ jobs:
if grep -q 'SCRIPT_ERROR:' output.log || grep -q 'Tests none' output.log; then
exit 1
fi
- name: Upload screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: failed-screenshots
path: test/visual_regression/screenshots
merge-artifacts:
name: Merge Artifacts