Compare commits
1 Commits
da1bdb57c9
...
c44f3d2e51
Author | SHA1 | Date | |
---|---|---|---|
c44f3d2e51 |
@ -27,33 +27,12 @@ jobs:
|
|||||||
- name: run selfoss
|
- name: run selfoss
|
||||||
run: |
|
run: |
|
||||||
docker compose -f .gitea/workflows/assets/docker-compose.yml up -d
|
docker compose -f .gitea/workflows/assets/docker-compose.yml up -d
|
||||||
|
- name: Tests
|
||||||
- name: AVD cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
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'
|
if: steps.avd-cache.outputs.cache-hit != 'true'
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
with:
|
with:
|
||||||
api-level: 29
|
api-level: 29
|
||||||
force-avd-creation: false
|
arch: x86_64
|
||||||
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: run tests
|
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
|
||||||
with:
|
|
||||||
api-level: 29
|
|
||||||
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 androidApp:connectedAndroidTest
|
script: ./gradlew androidApp:connectedAndroidTest
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user