Skip to content

Commit 1f0aa4a

Browse files
authored
QACOE-222: Create CI config to run cypress tests (#4)
* Create main.yml * Update working directory * Update ci config
1 parent 1bc3e1d commit 1f0aa4a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)