Skip to content

Commit

Permalink
run test across a range of JDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Sep 3, 2024
1 parent 780b2a5 commit 150072f
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
name: Test

on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [master]

jobs:
test:
runs-on: macos-12
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: checkout
uses: actions/checkout@v3

- name: Gradle cache
uses: gradle/gradle-build-action@v2
- 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
- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/[email protected]
with:
Expand All @@ -27,7 +37,7 @@ jobs:
disable-animations: false
script: echo "Generated AVD snapshot for caching."

- name: run tests
- name: Run tests
uses: reactivecircus/[email protected]
with:
api-level: 29
Expand Down

0 comments on commit 150072f

Please sign in to comment.