From 8a9ab4416ae580400bb029d3ce4b644e7d481877 Mon Sep 17 00:00:00 2001 From: Abrar Wiryawan Date: Tue, 27 Jul 2021 08:13:51 +0700 Subject: [PATCH] change api level to 27 for UI test api 29 is currently timeout and makes test run for indefinite amount of time --- .github/workflows/build_pull_request.yaml | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build_pull_request.yaml b/.github/workflows/build_pull_request.yaml index 06073758..194fd61f 100644 --- a/.github/workflows/build_pull_request.yaml +++ b/.github/workflows/build_pull_request.yaml @@ -41,6 +41,31 @@ jobs: with: name: test-reports path: '**/build/reports/tests/' + + run_android_tests: + name: Android UI Test + runs-on: macos-latest # more reliable for ui tests + steps: + - name: Checkout + uses: actions/checkout@v2 + + # make gradlew executable + - name: Make gradlew executable + run: chmod +x ./gradlew + + - name: Run Android UI Tests + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 27 + script: ./gradlew connectedDebugAndroidTest + + - name: Upload Android Test Reports + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: android-test-reports + path: '**/build/reports/androidTests/' + assemble_debug_apk: name: Assemble debug APK