diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/pull_request.yml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9d4d1f07..2e1fae0a 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -3,7 +3,10 @@ on: pull_request name: Check pull request jobs: test-pr: - runs-on: ubuntu-latest + runs-on: macos-latest + strategy: + matrix: + api-level: [23, 25, 27, 29] steps: - uses: actions/checkout@master @@ -16,9 +19,12 @@ jobs: path: ~/.gradle/caches key: gradle-${{ runner.os }}-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/dependencies.gradle') }} - - run: ./gradlew spotlessCheck assembleDebug testDebug lintDebug -Dpre-dex=false + - name: Run unit tests + run: ./gradlew spotlessCheck testDebug lintDebug -Dpre-dex=false - - uses: actions/upload-artifact@master + - name: Run instrumentation tests + uses: reactivecircus/android-emulator-runner@v2 with: - name: Debug APK - path: app/build/outputs/apk/debug/app-debug.apk + api-level: ${{ matrix.api-level }} + target: default + script: ./gradlew connectedCheck |