-
Notifications
You must be signed in to change notification settings - Fork 535
62 lines (57 loc) · 1.72 KB
/
e2e.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: E2e Test
on:
push:
branches:
- master
pull_request:
merge_group:
jobs:
test:
runs-on: self-hosted
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
timeout-minutes: 40
strategy:
matrix:
api-level: [28]
target: [default]
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: oracle
java-version: 17
architecture: x64
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm install ganache --global
- name: Run tests
run: |
rm -rf ./output
mkdir ./output
adb shell settings put secure long_press_timeout 1500
adb shell settings put global window_animation_scale 0.0
adb shell settings put global transition_animation_scale 0.0
adb shell settings put global animator_duration_scale 0.0
adb shell settings put secure show_ime_with_hard_keyboard 0
ganache --chain.chainId 2 -h 0.0.0.0 -p 8555 -m "horse light surface bamboo combine item lumber tunnel choose acid mail feature" &
adb logcat >> output/emulator.log &
./gradlew :app:uninstallAll :app:connectedNoAnalyticsDebugAndroidTest -x lint -PdisablePreDex
kill %1
kill %2
- name: Collect tests results
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: e2e-tests-results
path: output/
cleanup:
if: ${{ always() }}
needs: test
runs-on: self-hosted
steps:
- run: ./gradlew :app:uninstallAll