-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
780b2a5
commit 150072f
Showing
1 changed file
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 | ||
|