From 048f9ea32c32e179ad290928285ea0e720ca7f3c Mon Sep 17 00:00:00 2001 From: "Loren M. Lang" Date: Sun, 2 Jan 2022 20:21:03 -0800 Subject: [PATCH] Fixes --- .github/workflows/android.yml | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 87940e6..12b2936 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -17,6 +17,7 @@ jobs: with: fetch-depth: 0 submodules: recursive + - name: set up JDK 11 uses: actions/setup-java@v2 with: @@ -24,6 +25,12 @@ jobs: distribution: 'adopt' cache: gradle + - name: Load build outputs + uses: actions/cache@v2 + with: + path: build + key: build-${{ github.sha }} + - name: Create properties file with empty API key run: echo mapsApiKey="\"${{ secrets.mapsApiKey }}\"" >> local.properties @@ -42,6 +49,25 @@ jobs: runs-on: macos-latest steps: + - name: checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: recursive + + - name: set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: gradle + + - name: Load build outputs + uses: actions/cache@v2 + with: + path: build + key: build-${{ github.sha }} + - name: Run Unit Tests run: ./gradlew test --stacktrace @@ -61,6 +87,25 @@ jobs: target: [ default, google_apis ] steps: + - name: checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: recursive + + - name: set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: gradle + + - name: Load build outputs + uses: actions/cache@v2 + with: + path: build + key: build-${{ github.sha }} + - name: Run Instrumented Tests uses: reactivecircus/android-emulator-runner@v2 with: