-
Notifications
You must be signed in to change notification settings - Fork 29
69 lines (61 loc) · 2.06 KB
/
allure.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: allure-report
'on':
push:
branches:
- master
jobs:
generate-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download Cypress
uses: bahmutov/npm-install@v1
with:
install-command: npm i --force
env:
CYPRESS_INSTALL_BINARY: 0
- name: Check Cypress cache
run: |
npx cypress cache path
npx cypress cache list
- name: restore / cache the binary
id: cache-cypress
uses: actions/cache@v1
with:
path: ~/.cache/Cypress
key: >-
cypress-cache-v2-${{ runner.os }}-${{ hashFiles('**/package.json')
}}
- name: Install Cypress
run: |
npx cypress install
npx cypress cache list
- name: Run Cypress
continue-on-error: true
run: npm run cy:run
env:
CYPRESS_SPLIT_SPEC_API_KEY: '${{ secrets.SPLIT_SPEC_API_KEY }}'
- name: Run Cypress Cucumber
continue-on-error: true
if: always()
run: npm run cy:cucumber:run
- name: Get Allure history
uses: actions/checkout@v3
if: always()
continue-on-error: true
with:
ref: allure
path: allure
- name: Generate Allure Report
uses: simple-elf/allure-report-action@master
if: always()
with:
allure_results: allure-results
gh_pages: allure
- name: Deploy report to Github Pages
if: always()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: allure
publish_dir: allure-history