name: Android Emulator test on: pull_request: types: [opened, synchronize, reopened] jobs: build: runs-on: macOS-latest steps: - uses: actions/checkout@v2 - 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 uses: ReactiveCircus/android-emulator-runner@v2 with: api-level: 28 disable-animations: true script: zsh .github/workflows/runTests.sh - uses: actions/upload-artifact@v1 if: failure() with: name: test-report path: app/build/reports/androidTests/connected/flavors/PLAY/