Skip to content

Commit

Permalink
Add caching for emulator? (#29)
Browse files Browse the repository at this point in the history
* Add caching for emulator?
* CI emulator test speed up
---------

Co-authored-by: Mads Mogensen <mail@madsmogensen.dk>
  • Loading branch information
henneboy and mads256h authored Apr 5, 2024
1 parent da04fef commit e021c9e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,31 @@ jobs:
run: ./gradlew build -x test
- name: Test (local)
run: ./gradlew test -i
- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd
- 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
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: Test (emulator)
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
working-directory: ./frontend
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedCheck
- name: Report
uses: FlickerSoul/android-test-report-actions@v1.2
Expand Down

0 comments on commit e021c9e

Please sign in to comment.