Skip to content

Commit 911df26

Browse files
committed
1 parent 6ccb740 commit 911df26

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,30 @@ jobs:
1515
distribution: 'temurin'
1616
java-version: 11
1717
cache: 'gradle'
18+
- name: AVD cache
19+
uses: actions/cache@v3
20+
id: avd-cache
21+
with:
22+
path: |
23+
~/.android/avd/*
24+
~/.android/adb*
25+
key: avd-30
26+
- name: create AVD and generate snapshot for caching
27+
if: steps.avd-cache.outputs.cache-hit != 'true'
28+
uses: reactivecircus/android-emulator-runner@v2
29+
with:
30+
api-level: 30
31+
force-avd-creation: false
32+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
33+
disable-animations: false
34+
script: echo "Generated AVD snapshot for caching."
1835
- name: Run unit/instrumentation tests and coverage generation
1936
uses: reactivecircus/android-emulator-runner@v2
2037
with:
2138
api-level: 30
2239
target: google_apis
2340
arch: x86_64
41+
force-avd-creation: false
2442
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
2543
disable-animations: true
2644
script: ./gradlew -Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.FlakyTest,androidx.test.filters.LargeTest jacocoTestReport --stacktrace

0 commit comments

Comments
 (0)