-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1.09 KB
/
Copy pathmain.yml
File metadata and controls
39 lines (38 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: End-to-end tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cypress run
uses: cypress-io/github-action@v2
with:
build: npm run build
start: npm run start-dev
wait-on: http://localhost:2000
- name: machine ls $GITHUB_EVENT_PATH
run: "ls -la $GITHUB_EVENT_PATH"
- name: machine ls $GITHUB_WORKSPACE
run: "ls -la $GITHUB_WORKSPACE"
- name: machine ls $HOME
working-directory: "."
run: "ls -la $HOME"
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false
verbose: true
- name: Save photos
uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- name: Save videos
uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: cypress/videos