-
Notifications
You must be signed in to change notification settings - Fork 18
33 lines (29 loc) · 1.13 KB
/
device-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Run Device Tests
# read-write repo token
# access to secrets
on:
workflow_run:
workflows: ["Build & Test Project"]
types:
- completed
jobs:
device-tests:
runs-on: ubuntu-20.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: haya14busa/action-workflow_run-status@v1
- uses: actions/download-artifact@v4
with:
run-id: ${{github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Decode Firebase Service Account JSON
run: echo ${{ secrets.FIREBASE_SERVICE_ACCOUNT_BASE_64 }} | base64 -d > service_account.json
- name: 'Run Device Tests on Firebase Test Lab'
run: |
gcloud auth login --cred-file=service_account.json
gcloud config set project vocable-fcb07
gcloud firebase test android run \
--app apk/debug/app-debug.apk \
--test apk/androidTest/debug/app-debug-androidTest.apk \
--device version=34,orientation=portrait,model=MediumPhone.arm,locale=en_US \
--test-runner-class com.willowtree.vocable.utility.VocableTestRunner