Skip to content

Commit

Permalink
Update sdk_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lordrio committed Dec 16, 2024
1 parent 5743aa2 commit fba02de
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/sdk_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,30 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Touch local properties
run: touch local.properties

- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-29

- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
arch: x86_64
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
ram-size: 4096M
script: echo "Generated AVD snapshot for caching."

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

Expand All @@ -28,8 +52,15 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Run unit tests
run: ./gradlew :xendit-android:connectedCheck --info
- name: Run Instrumentation Test
uses: reactivecircus/android-emulator-runner@v2
with:
emulator-build: 7425822
api-level: 29
arch: x86_64
force-avd-creation: false
ram-size: 4096M
script: ./gradlew connectedQaDebugAndroidTest --stacktrace --no-daemon

# notify-slack:
# needs: unit-test
Expand Down

0 comments on commit fba02de

Please sign in to comment.