-
Notifications
You must be signed in to change notification settings - Fork 23
47 lines (39 loc) · 1.22 KB
/
cypress-report.yaml
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
40
41
42
43
44
45
46
47
name: Create Cypress report
on:
push:
branches:
- 'master'
# Add this part if you want to schedule test rerun
# schedule:
# - cron: '0 8 1-31 * *'
jobs:
cypress-e2e-chrome81:
name: Run on Chrome 81
runs-on: ubuntu-18.04
container: cypress/browsers:node12.16.2-chrome81-ff75
steps:
- uses: actions/checkout@v2
- name: Install a project with a clean slate
run: |
npm ci
$(npm bin)/cypress cache path
$(npm bin)/cypress cache list
$(npm bin)/cypress verify
- name: Run Cypress tests
run: npm run test:chrome
continue-on-error: true
- name: Copy test execution videos
run: |
mkdir public
cp -r cypress/videos public/videos
- name: Merge test results into one
run: npm run report:merge
- name: Generate HTML report
run: npm run report:generate
- name: Deploy report page
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'