-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 2.01 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
name: allure-report
'on':
push:
branches:
- master
jobs:
generate-report:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- name: Download Cypress
uses: bahmutov/npm-install@v1
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: Prepare Allure history
run: |
rm -r allure-results/*
cp -r ./allure-report/history ./allure-results/history
rm -r allure-report/*
- name: Install Cypress
run: |
npx cypress install
npx cypress cache list
- name: Run Cypress
run: npm run cy:run
- name: Run Cypress Cucumber
if: always()
run: npm run cy:cucumber:run
- name: Generate Allure report
if: always()
uses: afiore/[email protected]
- name: Commit report results
if: always()
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add allure-report -f
git add allure-results -f
git commit -m "[chore] autogenerate Allure report" -a
- name: Push changes
if: always()
uses: ad-m/github-push-action@master
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
force: true