Skip to content

Commit

Permalink
Firebase test lab (esafirm#304)
Browse files Browse the repository at this point in the history
* testing

* run only on PR

* formatting on test

* testing
  • Loading branch information
esafirm authored Oct 20, 2020
1 parent 42c9442 commit 158a273
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Android CI

on:
push:
branches: [main]
pull_request:
branches: [main]

Expand Down Expand Up @@ -31,3 +29,13 @@ jobs:
- name: Build with Gradle
run: ./gradlew build

- name: Build test
run: ./gradlew sample:assembleAndroidTest

- name: Run tests on Firebase Test Lab
uses: asadmansr/[email protected]
with:
arg-spec: 'firebasetest.yml:android-pixel-4'
env:
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
9 changes: 9 additions & 0 deletions firebasetest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
android-pixel-4:
type: instrumentation
app: sample/build/outputs/apk/debug/sample-debug.apk
test: sample/build/outputs/apk/androidTest/debug/sample-debug-androidTest.apk
device:
- model: flame
version: 29
locale: 'en'
orientation: portrait

0 comments on commit 158a273

Please sign in to comment.