Select all button #132
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: 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 }} |