Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-04-19 00:19:23 +0300
committerNiedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com>2020-04-19 00:23:38 +0300
commit0649a68342449715e5b6dfe218f0f06524bac3a8 (patch)
tree3bec223b6650f2ce8976430b2a638c5347ad328e /.github
parentf07605d3a6f5174136fa5eb9d28ceb9daca282ee (diff)
Initial support for instrumented tests in CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/android.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index 4c4f2f37..efcfa6fa 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