Skip to content

Commit 74aae73

Browse files
committed
try to save screenshots
1 parent 24b3384 commit 74aae73

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ jobs:
2323
uses: cypress-io/github-action@v6
2424
with:
2525
start: npm start
26+
# after the test run completes store videos and any screenshots
27+
- uses: actions/upload-artifact@v4
28+
# add the line below to store screenshots only on failures
29+
if: failure()
30+
with:
31+
name: cypress-screenshots
32+
path: cypress/screenshots
33+
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
34+
- uses: actions/upload-artifact@v4
35+
with:
36+
name: cypress-videos
37+
path: cypress/videos
38+
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`
2639
ci:
2740
runs-on: ubuntu-latest
2841
steps:

0 commit comments

Comments
 (0)