-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (46 loc) · 1.51 KB
/
metaap_instrumentation_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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Metaap 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-metaapp:
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 metaapp:assembleDebug metaapp:assembleDebugAndroidTest
cp samples/metaapp/build/outputs/apk/debug/metaapp-debug.apk ./metaapp-debug.apk
cp samples/metaapp/build/outputs/apk/androidTest/debug/metaapp-debug-androidTest.apk ./metaapp-debug-androidTest.apk
- name: Run tests Metaapp on Firebase Test Lab
uses: asadmansr/Firebase-Test-Lab-Action@v1.0
with:
arg-spec: 'test_devices.yml:metaapp-nexus_low_res'
env:
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}