Enable job matrix for testing on several API levels

pull/315/head
Loren M. Lang 2022-01-02 19:17:06 -08:00
rodzic ac190f1b1e
commit 7c0faeca15
1 zmienionych plików z 10 dodań i 4 usunięć

Wyświetl plik

@ -7,10 +7,16 @@ on:
branches: [ '**' ] branches: [ '**' ]
jobs: jobs:
build: test:
#runs-on: ubuntu-latest # macOS provided hardware-accelerated emulator
runs-on: macos-latest runs-on: macos-latest
strategy:
fail-fast: false
matrix:
api-level: [ 15, 19, 24, 30 ]
target: [ default, google_apis ]
name: "Android CI for API ${{ matrix.api-level }} target ${{ matrix.target }}"
steps: steps:
- name: checkout - name: checkout
@ -41,8 +47,8 @@ jobs:
- name: Run Instrumented Tests - name: Run Instrumented Tests
uses: reactivecircus/android-emulator-runner@v2 uses: reactivecircus/android-emulator-runner@v2
with: with:
api-level: 24 api-level: ${{ matrix.api-level }}
target: default #, google_apis target: ${{ matrix.target }}
arch: x86 arch: x86
profile: Nexus 6 profile: Nexus 6
script: ./gradlew connectedCheck --stacktrace script: ./gradlew connectedCheck --stacktrace