forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 805 Bytes
/
precommit.yml
File metadata and controls
28 lines (27 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Gradle Precommit
on: [pull_request]
jobs:
precommit:
if: github.repository == 'opensearch-project/OpenSearch'
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [ 21, 23 ]
os: [ubuntu-latest, windows-latest, macos-latest, macos-13, ubuntu-24.04-arm]
include:
- java: 21
os: 'windows-2025'
experimental: true
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: gradle
- name: Run Gradle (precommit)
continue-on-error: ${{ matrix.experimental }}
shell: bash
run: |
./gradlew javadoc precommit --parallel