Skip to content

Commit fba02de

Browse files
committed
Update sdk_test.yml
1 parent 5743aa2 commit fba02de

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

Diff for: .github/workflows/sdk_test.yml

+33-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,30 @@ jobs:
1515
java-version: '17'
1616
distribution: 'temurin'
1717

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+
1842
- name: Setup Gradle
1943
uses: gradle/gradle-build-action@v2
2044

@@ -28,8 +52,15 @@ jobs:
2852
- name: Grant execute permission for gradlew
2953
run: chmod +x gradlew
3054

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
3364

3465
# notify-slack:
3566
# needs: unit-test

0 commit comments

Comments
 (0)