diff options
author | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-04-18 14:20:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 14:20:29 +0300 |
commit | 067c24b9c37f2fa376d71ff7fc4c50a85165a594 (patch) | |
tree | 32030c2f53f9f770184356d36f234d007bd975cd /.github | |
parent | 712681317bba1e27794089ac805a97c85f3b6dca (diff) |
Instrumented tests ci (#386)
* Trial and error - add instrumented tests to CI
* Trial and error - add instrumented tests to CI
Setup AVD
* Trial and error - add instrumented tests to CI
Fix action version
* Try API level 27 for AVD
https://github.com/ReactiveCircus/android-emulator-runner/issues/45
* Try API level 29 for AVD on macos-latest image
https://github.com/ReactiveCircus/android-emulator-runner/issues/45
* Explicitly watch instrumented test fail
* Fix instrumented tests and prepare merge into master
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/android.yml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ccf380909..5700a0dce 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -10,7 +10,7 @@ jobs: - uses: gradle/wrapper-validation-action@v1 test: - name: Run Unit Tests + name: Unit tests runs-on: ubuntu-18.04 steps: @@ -22,6 +22,22 @@ jobs: - name: Unit tests run: bash ./gradlew test --stacktrace + instrumented: + name: Android instrumented tests + 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: Android instrumented tests + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 29 + script: ./gradlew connectDevDebugAndroidTest --stacktrace + apk: name: Generate APK runs-on: ubuntu-18.04 |