From 38e212f45b2f7670fe03627737b645744b14534d Mon Sep 17 00:00:00 2001 From: "Loren M. Lang" Date: Sun, 2 Jan 2022 16:54:53 -0800 Subject: [PATCH] Added in GitHub Continuous Integration --- .github/workflows/android.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..b46ee39 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,39 @@ +name: Android CI + +on: + push: + branches: [ '**' ] + pull_request: + branches: [ '**' ] + +jobs: + build: + + #runs-on: ubuntu-latest + runs-on: macos-latest + + steps: + - name: checkout + uses: actions/checkout@v2 + - name: set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: gradle + + - name: Create properties file with empty API key + run: echo mapsApiKey=a >> local.properties + - name: Build with Gradle + run: ./gradlew build + - name: Run Unit Tests + run: ./gradlew check + + - name: Run Instrumented Tests + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 24 + target: default #, google_apis + arch: x86 + profile: Nexus 6 + script: ./gradlew connectedCheck --stacktrace