summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-07-24 14:33:55 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-07-30 13:49:23 +0530
commit35a8e8b42cd828a1c5634d4ee1d50fc4d0d98f5c (patch)
tree8fa77574eadcdfe5fbc03fada2ae360988fd4807 /.github
parent5c28fe9817446008c7d343fa3e020114b132ab15 (diff)
Expand OTP and PasswordEntry tests (#968)
(cherry picked from commit e3cf73885c112bc553d6a0cc01d594a87728f448)
Diffstat (limited to '.github')
-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