2019-11-28 10:00:53 +01:00
|
|
|
name: Android Emulator test
|
|
|
|
|
2019-12-20 00:08:53 +01:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
2019-11-28 10:00:53 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
2020-05-16 19:32:18 +02:00
|
|
|
- uses: actions/checkout@v2
|
2019-11-28 10:00:53 +01:00
|
|
|
- name: set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew assemblePlayDebugAndroidTest
|
|
|
|
- name: Android Emulator test
|
2020-01-07 22:13:56 +01:00
|
|
|
uses: ReactiveCircus/android-emulator-runner@v2.2.0
|
2019-11-28 10:00:53 +01:00
|
|
|
with:
|
|
|
|
api-level: 28
|
|
|
|
disable-animations: true
|
2020-01-07 22:13:56 +01:00
|
|
|
script: zsh .github/workflows/runTests.sh
|
2019-11-28 10:00:53 +01:00
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: test-report
|
|
|
|
path: app/build/reports/androidTests/connected/flavors/PLAY/
|