Skip to content

Commit 5d2faad

Browse files
committed
wait on
1 parent 74aae73 commit 5d2faad

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/ci.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,14 @@ 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
26+
wait-on: 'http://localhost:3000'
27+
- name: Upload failure screenshots
28+
uses: actions/upload-artifact@v4
2929
if: failure()
3030
with:
3131
name: cypress-screenshots
3232
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`
33+
if-no-files-found: ignore
3934
ci:
4035
runs-on: ubuntu-latest
4136
steps:

0 commit comments

Comments
 (0)