Skip to content

Commit cf0018b

Browse files
committed
Avoid trying to upload playwright report when none exists
1 parent 210961e commit cf0018b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-smokes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ jobs:
312312
key: ${{ steps.cache-renv-packages-restore.outputs.cache-primary-key }}
313313

314314
- uses: actions/upload-artifact@v4
315-
# PLaywright test only runs on Linux for now
316-
if: ${{ !cancelled() && runner.os != 'Windows' }}
315+
# Upload pLaywright test report if they exists (playwright is only running on Linux for now)
316+
if: ${{ !cancelled() && runner.os != 'Windows' && hashFiles('tests/integration/playwright/playwright-report/**/*') != '' }}
317317
with:
318318
name: playwright-report
319319
path: ./tests/integration/playwright/playwright-report/

0 commit comments

Comments
 (0)