-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.11 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
48
49
name: Create Cypress report
on:
push:
branches:
- main
workflow_dispatch:
jobs:
cypress-generate-report:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress install
uses: cypress-io/github-action@v6
with:
runTests: false
- name: Cypress run tests
run: npm run test:chrome
- name: Merge test results into one
if: ${{ always() }}
run: npm run report:merge
- name: Generate HTML report
if: ${{ always() }}
run: npm run report:generate
- name: Deploy report page
if: ${{ always() }}
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
user_name: 'matottodigitas'
user_email: 'matottodigitas@users.noreply.github.com'
- name: Upload report to Github
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Test Result
path: |
./public
cypress/screenshots/