-
-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (58 loc) · 1.76 KB
/
ui_tests.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
name: UI tests
on:
push:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: macos-latest
env:
JAVA_VERSION: '17'
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
cache: 'gradle'
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 31
arch: x86_64
target: default
profile: pixel_6_pro
emulator-boot-timeout: 1000
sdcard-path-or-size: 1000M
force-avd-creation: true
disable-spellchecker: true
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: scripts/run_ui_tests
- name: Upload screenshots
uses: actions/upload-artifact@v3
with:
name: screenshots
path: screenshots/
- name: Create screenshot pull request if on main branch
uses: peter-evans/create-pull-request@v5
if: github.ref == 'refs/heads/main'
with:
branch: feature/update_screenshots
title: Update of screenshots
commit-message: Update of screenshots
add-paths: |
screenshots/*
- name: Upload test report
uses: actions/upload-artifact@v3
if: always()
with:
name: test_report
path: |
app/build/reports/androidTests/connected/
app/build/error_screenshots/