Skip to content

Commit b10edd3

Browse files
committed
Adding Visual Test Report in Github Actions
1 parent 762f58b commit b10edd3

File tree

4 files changed

+443
-1
lines changed

4 files changed

+443
-1
lines changed

.github/workflows/ci-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ jobs:
2727
run: npm test
2828
env:
2929
CI: true
30+
- name: Generate Visual Test Report
31+
run: node test/unit/visual/generate-visual-report.js
32+
env:
33+
CI: true
34+
- name: Upload Visual Test Report
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: visual-test-report
38+
path: test/unit/visual/visual-report.html
39+
retention-days: 14
3040
- name: report test coverage
3141
run: bash <(curl -s https://codecov.io/bash) -f coverage/coverage-final.json
3242
env:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ yarn.lock
2323
docs/data.json
2424
analyzer/
2525
preview/
26-
__screenshots__/
26+
__screenshots__/
27+
actual-screenshots/
28+
visual-report.html

0 commit comments

Comments
 (0)