Skip to content

Commit 29adfbe

Browse files
authored
Improve uploading artefacts on browser test failure (#9980)
* Fix uploading multiple screenshot artefacts * Upload browser console on test failure
1 parent 1582d3f commit 29adfbe

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/browser_tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,13 @@ jobs:
8484
if: failure()
8585
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
8686
with:
87-
name: screenshots
87+
name: screenshots-php${{ matrix.php }}
8888
path: tests/Browser/screenshots
89+
90+
- name: Upload browser console as artifacts
91+
# Upload console messages if the test suite failed.
92+
if: failure()
93+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
94+
with:
95+
name: console-php${{ matrix.php }}
96+
path: tests/Browser/console

0 commit comments

Comments
 (0)