summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/android-app.yml22
-rw-r--r--android/test/firebase-test-lab.yml11
2 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/android-app.yml b/.github/workflows/android-app.yml
index 2f769c1e7e..8fbd64fe68 100644
--- a/.github/workflows/android-app.yml
+++ b/.github/workflows/android-app.yml
@@ -291,3 +291,25 @@ jobs:
path: /tmp/mullvad-${{ matrix.test-type }}-instrumentation-report
if-no-files-found: ignore
retention-days: 1
+
+ instrumented-firebase-tests:
+ name: Run instrumented firebase tests
+ if: github.event_name != 'pull_request'
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ needs: [build-app]
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - uses: actions/download-artifact@v3
+ with:
+ name: apks
+ path: android
+
+ - name: Run tests on Firebase Test Lab
+ uses: asadmansr/Firebase-Test-Lab-Action@v1.0
+ env:
+ SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
+ with:
+ arg-spec: 'android/test/firebase-test-lab.yml:default'
diff --git a/android/test/firebase-test-lab.yml b/android/test/firebase-test-lab.yml
new file mode 100644
index 0000000000..fc2c5758ec
--- /dev/null
+++ b/android/test/firebase-test-lab.yml
@@ -0,0 +1,11 @@
+---
+default:
+ type: instrumentation
+ app: android/app/build/outputs/apk/ossProd/debug/app-oss-prod-debug.apk
+ test: android/test/mockapi/build/outputs/apk/debug/mockapi-debug.apk
+ timeout: 10m
+ use-orchestrator: true
+ device:
+ - {model: shiba, version: 34, locale: en, orientation: portrait}
+ environment-variables:
+ clearPackageData: "true"