-
Notifications
You must be signed in to change notification settings - Fork 1
101 lines (86 loc) · 3.28 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
env:
ALLURE_VERSION: "2.10.0"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
id: build
run: mvn compile
- name: Get Allure history
uses: actions/checkout@v2
id: allure-setup
if: steps.build.outcome == 'success'
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- name: Code Compile
id: js-driver-compile
run: mvn -ntp install -DskipTests
- name: JS Driver Tests
id: js-driver-tests
if: steps.allure-setup.outcome == 'success'
timeout-minutes: 10
continue-on-error: true
run: mvn verify $WITH_PARAMS -pl $GROUP_ID:tests-js-driver
- name: JS Wrappers Tests
id: js-wrappers-tests
if: steps.allure-setup.outcome == 'success'
timeout-minutes: 10
continue-on-error: true
run: mvn verify $WITH_PARAMS -pl $GROUP_ID:tests-js-wrappers
- name: JS Nova Tests
id: jdi-nova-tests
if: steps.allure-setup.outcome == 'success'
timeout-minutes: 10
continue-on-error: true
run: mvn verify $WITH_PARAMS -pl $GROUP_ID:tests-jdi-nova -Drun.performance=true --fail-at-end
- name: E2E Without Page objects
id: e2e-tests-no-po
if: steps.allure-setup.outcome == 'success'
timeout-minutes: 10
continue-on-error: true
run: mvn verify $WITH_PARAMS -pl $GROUP_ID:tests-e2e-no-page-objects
- name: E2E With Page objects
id: e2e-tests-po
if: steps.allure-setup.outcome == 'success'
timeout-minutes: 10
continue-on-error: true
run: mvn verify $WITH_PARAMS -pl $GROUP_ID:tests-e2e-page-objects
- name: Check Tests passed
if: ${{ steps.js-driver-tests.outcome != 'success' || steps.js-wrappers-tests.outcome != 'success' || steps.jdi-nova-tests.outcome != 'success' || steps.e2e-tests-no-po.outcome != 'success' || steps.e2e-tests-po.outcome != 'success' }}
run: |
echo Tests failed:
echo JS Driver Tests: ${{ steps.js-driver-tests.outcome }}
echo JS Wrappers Tests: ${{ steps.js-wrappers-tests.outcome }}
echo JS Nova Tests: ${{ steps.jdi-nova-tests.outcome }}
echo E2E Without Page objects: ${{ steps.e2e-tests-no-po.outcome }}
echo E2E With Page objects: ${{ steps.e2e-tests-po.outcome }}
exit 1
- name: Allure Report action from marketplace
uses: simple-elf/allure-report-action@master
if: always()
with:
allure_results: target/allure-results
allure_history: allure-history
- name: Deploy report to Github Pages
if: always()
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history