-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.02 KB
/
main.yml
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
name: Run UI-Automation Tests
on:
push:
branches:
- 'master'
schedule:
- cron: '0 6 * * 0-6'
jobs:
test:
runs-on: ubuntu-latest
env:
SELENOID: '127.0.0.1'
BROWSER_VERSION: '92.0'
steps:
- uses: actions/checkout@v1
- name: Configure browsers.json
run: npm run configure:browsers
- name: Set up Selenoid
run: npm run selenoid:start
- name: Run UI Tests
run: npm cit
- name: Shutdown Selenoid
run: npm run selenoid:stop
- name: Generate Allure Report
if: always()
run: npm run report-ci
- name: Deploy Allure Report
if: always()
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./allure-report
- name: Upload Allure Report
if: always()
uses: actions/upload-artifact@v2
with:
name: allure report
path: ./allure-report