File tree 1 file changed +33
-2
lines changed
1 file changed +33
-2
lines changed Original file line number Diff line number Diff line change 15
15
java-version : ' 17'
16
16
distribution : ' temurin'
17
17
18
+ - name : Touch local properties
19
+ run : touch local.properties
20
+
21
+ - name : AVD cache
22
+ uses : actions/cache@v3
23
+ id : avd-cache
24
+ with :
25
+ path : |
26
+ ~/.android/avd/*
27
+ ~/.android/adb*
28
+ key : avd-29
29
+
30
+ - name : create AVD and generate snapshot for caching
31
+ if : steps.avd-cache.outputs.cache-hit != 'true'
32
+ uses : reactivecircus/android-emulator-runner@v2
33
+ with :
34
+ api-level : 29
35
+ arch : x86_64
36
+ force-avd-creation : false
37
+ emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
38
+ disable-animations : false
39
+ ram-size : 4096M
40
+ script : echo "Generated AVD snapshot for caching."
41
+
18
42
- name : Setup Gradle
19
43
uses : gradle/gradle-build-action@v2
20
44
28
52
- name : Grant execute permission for gradlew
29
53
run : chmod +x gradlew
30
54
31
- - name : Run unit tests
32
- run : ./gradlew :xendit-android:connectedCheck --info
55
+ - name : Run Instrumentation Test
56
+ uses : reactivecircus/android-emulator-runner@v2
57
+ with :
58
+ emulator-build : 7425822
59
+ api-level : 29
60
+ arch : x86_64
61
+ force-avd-creation : false
62
+ ram-size : 4096M
63
+ script : ./gradlew connectedQaDebugAndroidTest --stacktrace --no-daemon
33
64
34
65
# notify-slack:
35
66
# needs: unit-test
You can’t perform that action at this time.
0 commit comments