From e3cf73885c112bc553d6a0cc01d594a87728f448 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 24 Jul 2020 14:33:55 +0530 Subject: Expand OTP and PasswordEntry tests (#968) --- .github/workflows/pull_request.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9f07976a..688ac96e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -69,8 +69,20 @@ jobs: if: ${{ steps.service-changed.outputs.result == 'true' }} run: ./gradlew test${{ matrix.variant }} lint${{ matrix.variant}} -Dpre-dex=false - - name: Run instrumentation tests - if: ${{ steps.service-changed.outputs.result == 'true' }} + - name: Run instrumentation tests on free flavor + if: ${{ steps.service-changed.outputs.result == 'true' && matrix.variant == 'freeRelease' }} + uses: reactivecircus/android-emulator-runner@v2.11.0 + with: + api-level: ${{ matrix.api-level }} + target: default + script: | + adb shell settings put global animator_duration_scale 0 + adb shell settings put global transition_animation_scale 0 + adb shell settings put global window_animation_scale 0 + ./gradlew :app:connectedFreeDebugAndroidTest + + - name: Run instrumentation tests on nonFree flavor + if: ${{ steps.service-changed.outputs.result == 'true' && matrix.variant == 'nonFreeRelease' }} uses: reactivecircus/android-emulator-runner@v2.11.0 with: api-level: ${{ matrix.api-level }} @@ -79,4 +91,4 @@ jobs: adb shell settings put global animator_duration_scale 0 adb shell settings put global transition_animation_scale 0 adb shell settings put global window_animation_scale 0 - ./gradlew connectedCheck + ./gradlew :app:connectedNonFreeDebugAndroidTest -- cgit v1.2.3