diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-09-17 01:00:21 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 01:00:21 +0530 |
commit | bfd9c1d7765a2e98ef23b034a708f430f43912f8 (patch) | |
tree | b6a36f1baf58079157f805aa43e009c9f1dad0d1 | |
parent | 08102734445257f9bbd4a7477c49e9e55fd88eb2 (diff) |
github: remove nonFree flavor from tests (#1102)
Our tests have zero differences between these flavors so running 4 jobs rather than 2 just slows us down
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
-rw-r--r-- | .github/workflows/pull_request.yml | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 25829a9a..f374c689 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -7,7 +7,6 @@ jobs: strategy: matrix: api-level: [23, 29] - variant: [freeDebug, nonFreeDebug] steps: - name: Check if relevant files have changed @@ -67,10 +66,10 @@ jobs: - name: Run unit tests if: ${{ steps.service-changed.outputs.result == 'true' }} - run: ./gradlew test${{ matrix.variant }} lint${{ matrix.variant}} -Dpre-dex=false + run: ./gradlew testFreeDebug lintFreeDebug - - name: Run instrumentation tests on free flavor - if: ${{ steps.service-changed.outputs.result == 'true' && matrix.variant == 'freeDebug' }} + - name: Run instrumentation tests + if: ${{ steps.service-changed.outputs.result == 'true' }} uses: reactivecircus/android-emulator-runner@v2.11.0 with: api-level: ${{ matrix.api-level }} @@ -81,18 +80,6 @@ jobs: 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 == 'nonFreeDebug' }} - 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:connectedNonFreeDebugAndroidTest - - name: (Fail-only) upload test report if: failure() uses: actions/upload-artifact@v2 |