88 required : false
99 default : " default-feature-branch"
1010 pull_request :
11+ paths :
12+ - ' app/**'
13+ - ' gradle/**'
14+ - ' *.gradle.kts'
15+ - ' gradle.properties'
16+ - ' .github/workflows/e2e.yml'
1117
1218env :
1319 TERM : xterm-256color
@@ -104,6 +110,28 @@ jobs:
104110 sudo udevadm control --reload-rules
105111 sudo udevadm trigger --name-match=kvm
106112
113+ - name : AVD cache
114+ uses : actions/cache@v4
115+ id : avd-cache
116+ with :
117+ path : |
118+ ~/.android/avd/*
119+ ~/.android/adb*
120+ key : avd-33-x86_64-pixel_6
121+
122+ - name : Create AVD and generate snapshot for caching
123+ if : steps.avd-cache.outputs.cache-hit != 'true'
124+ uses : reactivecircus/android-emulator-runner@v2
125+ with :
126+ profile : pixel_6
127+ api-level : 33
128+ arch : x86_64
129+ avd-name : Pixel_6
130+ force-avd-creation : false
131+ emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none
132+ disable-animations : false
133+ script : echo "Generated AVD snapshot for caching."
134+
107135 - name : Download APK
108136 uses : actions/download-artifact@v4
109137 with :
@@ -156,7 +184,7 @@ jobs:
156184 arch : x86_64
157185 avd-name : Pixel_6
158186 force-avd-creation : false
159- emulator-options : -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-front none
187+ emulator-options : -no-snapshot-save -no- window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none
160188 script : cd bitkit-e2e-tests && ./ci_run_android.sh --mochaOpts.grep "${{ matrix.shard.grep }}"
161189 env :
162190 RECORD_VIDEO : true
@@ -173,7 +201,7 @@ jobs:
173201 arch : x86_64
174202 avd-name : Pixel_6
175203 force-avd-creation : false
176- emulator-options : -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-front none
204+ emulator-options : -no-snapshot-save -no- window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none
177205 script : cd bitkit-e2e-tests && ./ci_run_android.sh --mochaOpts.grep "${{ matrix.shard.grep }}"
178206 env :
179207 RECORD_VIDEO : true
@@ -189,7 +217,7 @@ jobs:
189217 arch : x86_64
190218 avd-name : Pixel_6
191219 force-avd-creation : false
192- emulator-options : -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-front none
220+ emulator-options : -no-snapshot-save -no- window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-front none
193221 script : cd bitkit-e2e-tests && ./ci_run_android.sh --mochaOpts.grep "${{ matrix.shard.grep }}"
194222 env :
195223 RECORD_VIDEO : true
0 commit comments