Skip to content

Commit 1f4ae88

Browse files
authored
Merge pull request #269 from mathworks/yugp-saveScreenshots
Added an artifact in test.yml and test-pull-request.yml to capture screenshots of failures
2 parents c605faf + 9331fb8 commit 1f4ae88

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/test-pull-request.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,11 @@ jobs:
6464
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
6565
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
6666
DISPLAY: ":17.0"
67-
if: ${{ success() && matrix.os != 'ubuntu-latest' }}
67+
if: ${{ success() && matrix.os != 'ubuntu-latest' }}
68+
- name: Upload Screenshots
69+
uses: actions/upload-artifact@v4
70+
if: always()
71+
with:
72+
name: screenshots-${{ matrix.os }}-${{ matrix.version }}
73+
path: ./vscode-test/test-resources/screenshots
74+
if-no-files-found: ignore

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,11 @@ jobs:
5858
MLM_WEB_ID: ${{secrets.MLM_WEB_ID}}
5959
MLM_WEB_USER_CRED: ${{secrets.MLM_WEB_USER_CRED}}
6060
DISPLAY: ":17.0"
61+
62+
- name: Upload Screenshots
63+
uses: actions/upload-artifact@v4
64+
if: always()
65+
with:
66+
name: screenshots-${{ matrix.os }}-${{ matrix.version }}
67+
path: .vscode-test/test-resources/screenshots
68+
if-no-files-found: ignore

0 commit comments

Comments
 (0)