[DIA-2851] Automation test for the no internet exception #1217
Workflow file for this run
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: SampleApp UI Tests | |
on: | |
push: | |
branches: [ develop, v7 ] | |
paths: | |
- '!README.md' | |
- '!release_note.txt' | |
# - '!samples/nativemessage/*' | |
pull_request: | |
branches: [ develop, v7 ] | |
# paths: | |
# - '!README.md' | |
# - '!samples/nativemessage/*' | |
jobs: | |
ui-test-app: | |
runs-on: ubuntu-latest | |
env: | |
PROJECT_ID: ${{ secrets.PROJECT_ID }} | |
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: creating local.properties # this file is normally added to .gitignore | |
run: touch local.properties | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/cache | |
!~/cache/exclude | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- name: Build test artifact | |
run: | | |
./gradlew app:assembleDebug app:assembleDebugAndroidTest | |
cp samples/app/build/outputs/apk/debug/app-debug.apk ./app-debug.apk | |
cp samples/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk ./app-debug-androidTest.apk | |
- name: Run tests SampleApp on Firebase Test Lab | |
uses: asadmansr/Firebase-Test-Lab-Action@v1.0 | |
with: | |
arg-spec: 'test_devices.yml:android-pixel-3-api28' | |
env: | |
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} |