AntennaPod/.github/workflows/android-emulator.yml

29 lines
731 B
YAML
Raw Normal View History

2019-11-28 10:00:53 +01:00
name: Android Emulator test
on:
pull_request:
types: [opened, synchronize, reopened]
2019-11-28 10:00:53 +01:00
jobs:
build:
runs-on: macOS-latest
steps:
- 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/