forked from ShaftHQ/SHAFT_ENGINE
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 2.02 KB
/
test.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
name: Ubuntu - Test
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '00 1 * * *'
jobs:
build:
name: Test on Ubuntu
runs-on: [ubuntu-latest]
steps:
- name: Checkout Code
uses: actions/checkout@v2
#- name: Set up Zalenium
# run: docker-compose -f docker-compose_zalenium.yml up --force-recreate -d
- name: Set up Native Selenium Grid
run: docker-compose -f docker-compose_native.yml up --scale chrome=4 --remove-orphans -d
- name: Set up JDK 15
uses: actions/[email protected]
with:
java-version: 15
- name: Check running containers
run: docker ps
- name: Run all tests
continue-on-error: true
run: mvn test -DexecutionAddress="localhost:4444" -DtargetOperatingSystem="Linux-64" -DmaximumPerformanceMode="2" -DtargetBrowserName="GoogleChrome" -Dtest="!%regex[.*checksum.*], !%regex[.*cucumber.*], !%regex[.*sikulix.*], !%regex[.*imageComparison.*], !%regex[.*FileActions.*], !%regex[.*TerminalActions.*], !%regex[.*localShell.*], !%regex[.*fullPageScreenshotWithHeader.*], !%regex[.*dbConnection.*], !%regex[.*Appium.*]"
- name: Generate Allure Report with history
uses: simple-elf/[email protected]
with:
allure_results: allure-results
allure_report: allure-report
allure_version: 2.13.6
gh_pages: gh-pages
allure_history: allure-history
subfolder: allure
github_run_num: ${{ github.run_number }}
github_run_id: ${{ github.run_id }}
github_repo: ${{ github.repository }}
github_repo_owner: ${{ github.repository_owner }}
- name: Deploy report to Github Pages
uses: peaceiris/[email protected]
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: allure-history/allure
destination_dir: allure
publish_branch: gh-pages