File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : E2E on Chrome - Cypress Studio
2+ on : [push]
3+ jobs :
4+ cypress-run :
5+ runs-on : ubuntu-20.04
6+ # let's make sure our tests pass on Chrome browser
7+ name : E2E on Chrome
8+ steps :
9+ - name : Checkout
10+ uses : actions/checkout@v2
11+ - name : Cypress run
12+ uses : cypress-io/github-action@v2
13+ with :
14+ browser : chrome
15+ working-directory : cypress-studio
16+
17+ # after the test run completes
18+ # store videos and any screenshots
19+ # NOTE: screenshots will be generated only if E2E test failed
20+ # thus we store screenshots only on failures
21+ # Alternative: create and commit an empty cypress/screenshots folder
22+ # to always have something to upload
23+ - uses : actions/upload-artifact@v2
24+ if : failure()
25+ with :
26+ name : cypress-screenshots
27+ path : cypress/screenshots
28+ # Test run video was always captured, so this action uses "always()" condition
29+ - uses : actions/upload-artifact@v2
30+ if : always()
31+ with :
32+ name : cypress-videos
33+ path : cypress/videos
You can’t perform that action at this time.
0 commit comments