-
Notifications
You must be signed in to change notification settings - Fork 42
53 lines (52 loc) · 1.84 KB
/
main_and_pr_workflow.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Main and pull request checks
on:
push:
branches: [ 'main', 'version.*' ]
pull_request:
branches: [ 'main', 'version.*' ]
jobs:
assemble:
strategy:
fail-fast: false
matrix:
java-version: [17, 21]
runs-on: [ubuntu-latest]
name: Assemble on ${{ matrix.runs-on }} with JDK ${{ matrix.java-version }}
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: gradle
- name: Assemble with Gradle
run: ./gradlew assemble
check:
strategy:
fail-fast: false
matrix:
entry:
- { opensearch-version: 1.3.18, java-version: 17 }
- { opensearch-version: 1.3.18, java-version: 21 }
- { opensearch-version: 2.11.0, java-version: 17 }
- { opensearch-version: 2.11.0, java-version: 21 }
- { opensearch-version: 2.18.0, java-version: 17 }
- { opensearch-version: 2.18.0, java-version: 21 }
- { opensearch-version: 2.18.0, java-version: 23 }
runs-on: [ubuntu-latest]
name: Check on ${{ matrix.runs-on }} with JDK ${{ matrix.entry.java-version }} against OpenSearch ${{ matrix.entry.opensearch-version }}
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.entry.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.entry.java-version }}
distribution: 'temurin'
cache: gradle
- name: Check with Gradle
run: ./gradlew check -Psde.testcontainers.image-version=${{ matrix.entry.opensearch-version }}