Skip to content

Commit

Permalink
ci: Update gradle setup and add API matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-stephenson committed Dec 4, 2024
1 parent 50b95ff commit 76aac14
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ jobs:
- name: Checkout project sources
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v4

- name: Run build with Gradle Wrapper
run: ./gradlew build -x lint
Expand All @@ -18,6 +24,9 @@ jobs:
# macOS v14 / m1 GitHub Actions runners not allowing Android emulators
# https://github.com/ReactiveCircus/android-emulator-runner/issues/397
runs-on: macos-13
strategy:
matrix:
api-level: [29, 34]
steps:
- name: Checkout project sources
uses: actions/checkout@v3
Expand All @@ -32,7 +41,7 @@ jobs:
- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
api-level: ${{ matrix.api-level }}
script: ./gradlew connectedAndroidTest --stacktrace
disable-animations: true
disable-spellchecker: true

0 comments on commit 76aac14

Please sign in to comment.