Skip to content

Commit 3720afe

Browse files
authored
Update test.yml
1 parent e1d15d5 commit 3720afe

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,14 @@ jobs:
220220
- *setup-MATLAB
221221
- *setup-node
222222
- *install-dependencies
223-
- name: Upload failure screenshots
224-
uses: actions/upload-artifact@v4
225-
if: always() # ensures this runs even if tests fail
226-
with:
227-
name: failure-screenshots
228-
path: /var/folders/y6/nj790rtn62lfktb1sh__79hc0000gn/T/screenshots
229223
- *run-ui-tests
224+
- name: Move screenshots to artifact folder
225+
if: always()
226+
run: |
227+
mkdir -p .vscode-test/test-resources/screenshots
228+
if [ -d "$TMPDIR/screenshots" ]; then
229+
cp -R "$TMPDIR/screenshots/." .vscode-test/test-resources/screenshots/
230+
fi
230231
- name: Upload failure screenshots
231232
uses: actions/upload-artifact@v4
232233
if: always() # ensures this runs even if tests fail

0 commit comments

Comments
 (0)