aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
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