aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-07-24 14:33:55 +0530
committerGitHub <noreply@github.com>2020-07-24 14:33:55 +0530
commite3cf73885c112bc553d6a0cc01d594a87728f448 (patch)
tree724a3023a7e76d13065dd2ad900d4a24454b409e /.github/workflows
parentf256d5f2447a62af0e881eed56749cd0db610c8c (diff)
Expand OTP and PasswordEntry tests (#968)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pull_request.yml18
1 files changed, 15 insertions, 3 deletions
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