diff options
| author | Albin <albin@mullvad.net> | 2023-11-10 20:10:14 +0100 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2023-11-13 12:08:19 +0100 |
| commit | 6471612acee67ce0ee37dacf2707fb6a2df33a1d (patch) | |
| tree | 7b11b101163affc302cbd32518566d2ed1fef862 | |
| parent | 2cabd4a16b7163b59e8a3635d2ce7fd663bf60ee (diff) | |
| download | mullvadvpn-6471612acee67ce0ee37dacf2707fb6a2df33a1d.tar.xz mullvadvpn-6471612acee67ce0ee37dacf2707fb6a2df33a1d.zip | |
Run instrumented mockapi tests in firebase test lab
| -rw-r--r-- | .github/workflows/android-app.yml | 22 | ||||
| -rw-r--r-- | android/test/firebase-test-lab.yml | 11 |
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" |
