Skip to content

Build updates

Build updates #52

Workflow file for this run

name: Build Gradle project
on: pull_request
jobs:
build-gradle-project:
runs-on: ubuntu-latest
steps:
- 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/actions/setup-gradle@v4
- name: Run build with Gradle Wrapper
run: ./gradlew build -x lint
tests:
# 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
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'adopt'
cache: 'gradle'
- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
script: ./gradlew connectedAndroidTest --stacktrace
disable-animations: true
disable-spellchecker: true