Android Performance Tests in Firebase #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android Performance Tests in Firebase | |
on: | |
schedule: | |
# run every 6 hours | |
- cron: '0 */6 * * *' | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Authenticate with Google Cloud for bucket access with moz-mobile-testops for android_perf_test | |
- name: Authenticate with Google Cloud | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
# Set up Cloud SDK | |
- name: Set up Cloud SDK | |
uses: google-github-actions/setup-gcloud@v2 | |
# Download APKs from GCP bucket | |
- name: Download APKs | |
run: | | |
# download apks for termux, debug, and androidTest app | |
gsutil cp -r gs://android_perf_test/ . | |
# Authenticate with Google Cloud Service Account for Firebase Test Lab moz_fenix | |
- name: Authenticate with Google Cloud | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.GCP_SA_PERF_TESTS_TEST_LAB }} | |
# Run tests in Firebase Test Lab | |
- name: Run Wireless Debug Test in Firebase Test Lab | |
run: | | |
gcloud firebase test android run \ | |
--project moz-fenix \ | |
--app=./android_perf_test/app-debug.apk \ | |
--test=./android_perf_test/app-debug-androidTest.apk \ | |
--additional-apks ./android_perf_test/com.termux_1000.apk \ | |
--test-targets "class com.example.browserperformancetest.WirelessDebugAutomationTest" \ | |
--device model=e3q,version=34,locale=en_US,orientation=portrait \ | |
--timeout 30m \ | |
--directories-to-pull /sdcard/Download \ | |
--client-details matrixLabel="Chrome vs Firefox" |