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

32 lines
834 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
2021-06-13 13:07:07 +02:00
- name: Set up JDK 8
uses: actions/setup-java@v2
2019-11-28 10:00:53 +01:00
with:
2021-06-13 13:07:07 +02:00
distribution: 'adopt'
java-version: '8'
- name: Wrapper validation
uses: gradle/wrapper-validation-action@v1
2019-11-28 10:00:53 +01:00
- name: Build with Gradle
run: ./gradlew assemblePlayDebugAndroidTest
- name: Android Emulator test
2020-10-16 11:45:12 +02:00
uses: ReactiveCircus/android-emulator-runner@v2
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
2021-06-13 13:07:07 +02:00
- uses: actions/upload-artifact@v2
2019-11-28 10:00:53 +01:00
if: failure()
with:
name: test-report
path: app/build/reports/androidTests/connected/flavors/PLAY/