diff options
| author | Albin <albin@mullvad.net> | 2023-11-13 12:09:36 +0100 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2023-11-13 12:09:36 +0100 |
| commit | d3868a2b9065d57afaef1aa7672f3b9be3ea8bcd (patch) | |
| tree | e6bc796ee0f3facc8cdbb98ee2f77824b767b763 | |
| parent | 2cabd4a16b7163b59e8a3635d2ce7fd663bf60ee (diff) | |
| parent | fd17612e6b861c5b669006c503d180cd1c15bd12 (diff) | |
| download | mullvadvpn-d3868a2b9065d57afaef1aa7672f3b9be3ea8bcd.tar.xz mullvadvpn-d3868a2b9065d57afaef1aa7672f3b9be3ea8bcd.zip | |
Merge branch 'run-tests-in-firebase-test-lab-droid-202'
| -rw-r--r-- | .github/workflows/android-app.yml | 30 | ||||
| -rw-r--r-- | android/test/firebase-test-lab.yml | 14 |
2 files changed, 43 insertions, 1 deletions
diff --git a/.github/workflows/android-app.yml b/.github/workflows/android-app.yml index 2f769c1e7e..e92447884b 100644 --- a/.github/workflows/android-app.yml +++ b/.github/workflows/android-app.yml @@ -16,7 +16,13 @@ on: - '!scripts/**' - '!windows/**' - '!**/**.md' - + schedule: + # At 06:20 UTC every day. + # Notifications for scheduled workflows are sent to the user who last modified the cron + # syntax in the workflow file. If you update this you must have notifications for + # Github Actions enabled, so these don't go unnoticed. + # https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/notifications-for-workflow-runs + - cron: '20 6 * * *' workflow_dispatch: inputs: override_container_image: @@ -291,3 +297,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..feaefbc236 --- /dev/null +++ b/android/test/firebase-test-lab.yml @@ -0,0 +1,14 @@ +--- +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} + - {model: tangorpro, version: 33, locale: en, orientation: portrait} + - {model: felix, version: 33, locale: en, orientation: portrait} + - {model: GoogleTvEmulator, version: 30, locale: en, orientation: landscape} + environment-variables: + clearPackageData: "true" |
