File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 47
47
with :
48
48
cache-read-only : false
49
49
50
+ - name : AVD cache
51
+ uses : actions/cache@v3
52
+ id : avd-cache
53
+ with :
54
+ path : |
55
+ ~/.android/avd/*
56
+ ~/.android/adb*
57
+ key : avd-${{ matrix.api-level }}-${{ matrix.target-level }}
58
+
59
+ - name : create AVD and generate snapshot for caching
60
+ if : steps.avd-cache.outputs.cache-hit != 'true'
61
+ uses : reactivecircus/android-emulator-runner@v2
62
+ with :
63
+ profile : " Galaxy Nexus"
64
+ api-level : ${{ matrix.api-level }}
65
+ target : ${{ matrix.target }}
66
+ force-avd-creation : false
67
+ emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
68
+ disable-animations : false
69
+ script : echo "Generated AVD snapshot for caching."
70
+
50
71
# # Build before running tests
51
72
- name : Build instrumented integration tests
52
73
uses : gradle/gradle-build-action@v2
68
89
force-avd-creation : false
69
90
emulator-options : -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
70
91
disable-animations : true
71
- script : ./gradlew :integration-tests:firebase:connectedCheck
92
+ # Workaround for https://github.com/ReactiveCircus/android-emulator-runner/issues/319
93
+ script : adb uninstall "com.omricat.maplibrarian.integration-testing.debug"; ./gradlew :integration-tests:firebase:connectedCheck
72
94
73
95
- name : Extract logs from firebase emulator container
74
96
if : ${{ always() }}
You can’t perform that action at this time.
0 commit comments