Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisBodin committed Feb 29, 2024
1 parent 010dfd5 commit 00b06ee
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:

instrumentation-tests:
if: github.event.pull_request.draft == false
runs-on: [ self-hosted, Android ]
runs-on: [ self-hosted, test ]
strategy:
matrix:
api-level: [ 31 ]
api-level: [ 34 ]
target: [ google_apis ]

env:
Expand All @@ -42,21 +42,6 @@ jobs:
token: ${{ secrets.MY_REPO_PAT }}
submodules: recursive

- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/[email protected]
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
profile: Pixel 4
arch: x86_64
disk-size: 6G
avd-name: kdrive-test
force-avd-creation: false
disable-animations: false
emulator-options: -no-snapshot-save -noaudio -no-boot-anim -camera-back none -skin 540x1110
script: echo "Generated AVD snapshot for caching."

- name: Create test env
run: |
touch $ENV_PATH
Expand All @@ -72,16 +57,18 @@ jobs:
run: ./gradlew testDebugUnitTest --stacktrace

- name: Run instrumentation tests
uses: ReactiveCircus/android-emulator-runner@v2.27.0
uses: ReactiveCircus/android-emulator-runner@v2.30.1
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
profile: Pixel 4
arch: x86_64
profile: pixel_7
arch: arm64-v8a
disk-size: 6G
avd-name: kdrive-test
force-avd-creation: false
disable-animations: true
env:
ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL: 16
emulator-options: -no-snapshot-save -noaudio -no-boot-anim -camera-back none -skin 540x1110
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -skin 540x1110
script: ./gradlew uninstallAll app:connectedStandardDebugAndroidTest --stacktrace

0 comments on commit 00b06ee

Please sign in to comment.