Skip to content

Run tests across a range of JDKs #267

Run tests across a range of JDKs

Run tests across a range of JDKs #267

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
branches: [master]
jobs:
test:
name: Test on Java ${{ matrix.java-version }}
runs-on: macos-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
java-version: [8, 11, 17, 21]
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java-version }}
cache: gradle
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/[email protected]
with:
api-level: 29
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: Run tests
uses: reactivecircus/[email protected]
with:
api-level: 29
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew nativeTest