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