summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2023-01-23 09:15:31 +0100
committerAlbin <albin@mullvad.net>2023-01-23 09:15:31 +0100
commit55641479e0fbee227f12b6ef7d32df455d8f69e1 (patch)
treef45807d1f010b6915bec5453c64c31e37d611e79 /.github/workflows
parentcd940393b9020f470033a1819d8f10c4c9226353 (diff)
parent6e1612c21b22c8c1a8204c53d3f916c4f3064b8e (diff)
downloadmullvadvpn-55641479e0fbee227f12b6ef7d32df455d8f69e1.tar.xz
mullvadvpn-55641479e0fbee227f12b6ef7d32df455d8f69e1.zip
Merge branch 'switch-to-self-hosted-runner-for-android-tests'
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/android-app.yml42
1 files changed, 3 insertions, 39 deletions
diff --git a/.github/workflows/android-app.yml b/.github/workflows/android-app.yml
index 7d2e0dbd47..a605604e8d 100644
--- a/.github/workflows/android-app.yml
+++ b/.github/workflows/android-app.yml
@@ -133,7 +133,7 @@ jobs:
instrumented-tests:
name: Instrumented tests
- runs-on: macos-latest
+ runs-on: [self-hosted, android-emulator]
timeout-minutes: 30
needs: [build]
strategy:
@@ -147,42 +147,6 @@ jobs:
name: apks
path: android/app/build/outputs/apk
- - name: AVD cache
- uses: actions/cache@v3
- id: avd-cache
- with:
- path: |
- ~/.android/avd/*
- ~/.android/adb*
- key: emulator-api-33
-
- - name: Create avd and generate snapshot
- uses: reactivecircus/android-emulator-runner@v2
- if: steps.avd-cache.outputs.cache-hit != 'true'
- with:
- force-avd-creation: false
- api-level: 33
- target: google_apis
- arch: x86_64
- emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
- -camera-back none
- disable-animations: true
- profile: pixel
- script: echo "Generated AVD snapshot for caching."
- env:
- API_LEVEL: 33
-
- name: Run Android instrumented tests
- uses: reactivecircus/android-emulator-runner@v2
- with:
- force-avd-creation: false
- api-level: 33
- target: google_apis
- arch: x86_64
- emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect
- -noaudio -no-boot-anim -camera-back none
- disable-animations: true
- profile: pixel
- script: ./android/scripts/run-instrumented-tests.sh app
- env:
- API_LEVEL: 33
+ shell: bash -ieo pipefail {0}
+ run: ./android/scripts/run-instrumented-tests.sh app