Run tests for debug/release on 23/29 (#720)

* Also run unit tests for release build

* Only test on API levels 23 and 29
This commit is contained in:
Fabian Henneke 2020-04-18 20:16:40 +02:00 committed by GitHub
parent beaec159e8
commit cd0621864c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,8 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
strategy: strategy:
matrix: matrix:
api-level: [23, 25, 27, 29] api-level: [23, 29]
variant: [Debug, Release]
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
@ -20,7 +21,7 @@ jobs:
key: gradle-${{ runner.os }}-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/dependencies.gradle') }} key: gradle-${{ runner.os }}-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/dependencies.gradle') }}
- name: Run unit tests - name: Run unit tests
run: ./gradlew spotlessCheck testDebug lintDebug -Dpre-dex=false run: ./gradlew spotlessCheck test${{ matrix.variant }} lint${{ matrix.variant}} -Dpre-dex=false
- name: Run instrumentation tests - name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2 uses: reactivecircus/android-emulator-runner@v2