-
Notifications
You must be signed in to change notification settings - Fork 327
43 lines (35 loc) · 1023 Bytes
/
android.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
name: Android CI
on:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/[email protected]
with:
distribution: adopt-openj9
java-version: '11'
- name: Cache Gradle
uses: actions/cache@v2
env:
cache-name: gradle
with:
path: ~/.gradle
key: gradle-${{ hashFiles('build.gradle') }}
restore-keys: |
gradle-${{ hashFiles('build.gradle') }}
gradle-
- name: Build with Gradle
run: ./gradlew build -x lint
- name: Build test
run: ./gradlew sample:assembleAndroidTest
- name: Run tests on Firebase Test Lab
uses: asadmansr/[email protected]
if: github.ref == 'refs/heads/master'
with:
arg-spec: 'firebasetest.yml:android-pixel-4'
env:
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}