-
Notifications
You must be signed in to change notification settings - Fork 35
82 lines (74 loc) · 2.82 KB
/
compatibility-tests.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Compatibility Tests
on:
schedule:
- cron: '0 3 * * *'
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened, labeled ]
workflow_dispatch:
workflow_call:
jobs:
build:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'compatibility-sensitive')
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
hazelcast: [ '5.3.7', '5.4.0', '5.5.0-SNAPSHOT' ]
# Versions marked latest stable and limited-support from https://hibernate.org/orm/releases/
hibernate: [
'5.3.36.Final',
'5.6.15.Final',
'6.2.25.Final',
'6.4.8.Final',
'6.5.2.Final'
]
name: Test against HZ ${{ matrix.hazelcast }} and HN ${{ matrix.hibernate }}
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Compile with default Hazelcast and Hibernate
run: ./mvnw --batch-mode compile
- name: Run tests against HZ ${{ matrix.hazelcast }} and HN ${{ matrix.hibernate }}
run: ./mvnw --settings settings.xml --batch-mode verify -Dmaven.main.skip=true -Dhazelcast.version=${{ matrix.hazelcast }} -Dhibernate.core.version=${{ matrix.hibernate }} -Dhz.snapshot.internal.username=${{ secrets.HZ_SNAPSHOT_INTERNAL_USERNAME }} -Dhz.snapshot.internal.password=${{ secrets.HZ_SNAPSHOT_INTERNAL_PASSWORD }}
test-jdks:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'compatibility-sensitive')
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Run with latest Hazelcast release
hazelcast: [ '5.4.0' ]
java: [ '17', '21' ]
jakarta: [ '3.2.0' ]
include:
# And the 5.3.z release still supports Java 11
- hazelcast: '5.3.7'
java: '11'
jakarta: '3.1.0'
name: Test against JDK ${{ matrix.java }} and HZ ${{ matrix.hazelcast }}
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Compile with JDK 17
run: ./mvnw --batch-mode compile
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Run tests against JDK ${{ matrix.java }} and HZ ${{ matrix.hazelcast }}
run: JAVA_HOME=${JAVA_HOME_${{ matrix.java }}_x64} ./mvnw --batch-mode verify -Dmaven.main.skip=true -Dhazelcast.version=${{ matrix.hazelcast }} -Djakarta.version=${{ matrix.jakarta }}