-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1796] Hibernate 6.3 and 6.4 support and start testing snapshots nig…
…htly
- Loading branch information
Showing
61 changed files
with
3,526 additions
and
136 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
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 |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: "Blaze-Persistence CI" | ||
on: | ||
schedule: | ||
- cron: '0 5 * * *' | ||
env: | ||
MAVEN_SKIP_RC: true | ||
jobs: | ||
build: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
# We want to know the test results of all matrix entries | ||
continue-on-error: true | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
################################################ | ||
# Latest integration dependencies | ||
################################################ | ||
- rdbms: h2 | ||
component: other | ||
jdk: 17 | ||
################################################ | ||
# hibernate-6.2 | ||
################################################ | ||
- rdbms: h2 | ||
component: hibernate-6.2 | ||
jdk: 17 | ||
|
||
################################################ | ||
# hibernate-6.3 | ||
################################################ | ||
- rdbms: h2 | ||
component: hibernate-6.3 | ||
jdk: 17 | ||
|
||
################################################ | ||
# hibernate-6.4 | ||
################################################ | ||
- rdbms: h2 | ||
component: hibernate-6.4 | ||
jdk: 17 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Update /etc/hosts file | ||
# /etc/hosts file needs to be updated as a workaround for | ||
# https://github.com/actions/virtual-environments/issues/3185 | ||
run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts | ||
- name: Reclaim Disk Space | ||
run: .github/ci-prerequisites.sh | ||
- name: Set up Java 8 | ||
uses: AdoptOpenJDK/install-jdk@v1 | ||
with: | ||
version: 8 | ||
targets: JDK8_HOME;JAVA_HOME | ||
- name: Set up Requested JDK | ||
uses: actions/setup-java@v3 | ||
if: ${{ matrix.jdk != 8 && !endsWith(matrix.jdk, '-ea') }} | ||
with: | ||
java-version: ${{ matrix.jdk }} | ||
distribution: 'temurin' | ||
- name: Set up EA JDK | ||
uses: actions/setup-java@v3 | ||
if: ${{ matrix.jdk != 8 && endsWith(matrix.jdk, '-ea') }} | ||
with: | ||
java-version: ${{ matrix.jdk }} | ||
distribution: 'zulu' | ||
|
||
- name: Get year/month for cache key | ||
id: get-date | ||
run: | | ||
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")" | ||
shell: bash | ||
- name: Cache Maven local repository | ||
uses: actions/cache@v2 | ||
id: cache-maven | ||
with: | ||
path: | | ||
~/.m2/repository | ||
# refresh cache every month to avoid unlimited growth | ||
key: maven-localrepo-${{ steps.get-date.outputs.yearmonth }} | ||
- name: Set up Maven | ||
run: ./mvnw -v | ||
|
||
- name: Run build script | ||
env: | ||
JDK8_HOME: ${{ env.JDK8_HOME }} | ||
RDBMS: ${{ matrix.rdbms }} | ||
COMPONENT: ${{ matrix.component }} | ||
JDK: ${{ matrix.jdk }} | ||
run: ./ci/build-github-latest.sh | ||
shell: bash | ||
|
||
- name: Upload test reports (if Maven failed) | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: test-reports-${{ matrix.component }} | ||
path: './**/*-reports/' | ||
|
||
- name: Omit produced artifacts from build cache | ||
run: ./ci/before-cache.sh |
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
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#! /bin/bash | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
java -version | ||
|
||
if [ "$COMPONENT" == 'hibernate-6.2' ]; then | ||
export JPAPROVIDER="hibernate-6.2" | ||
export PROPERTIES="-s $DIR/latest-settings.xml -Dversion.hibernate-6.2=[6.2,6.3.Alpha)" | ||
elif [ "$COMPONENT" == 'hibernate-6.3' ]; then | ||
export JPAPROVIDER="hibernate-6.3" | ||
export PROPERTIES="-s $DIR/latest-settings.xml -Dversion.hibernate-6.3=[6.3,6.4.Alpha)" | ||
elif [ "$COMPONENT" == 'hibernate-6.4' ]; then | ||
export JPAPROVIDER="hibernate-6.4" | ||
export PROPERTIES="-s $DIR/latest-settings.xml -Dversion.hibernate-6.4=[6.4,6.5.Alpha)" | ||
else | ||
export JPAPROVIDER="hibernate-6.2" | ||
export PROPERTIES="-Dversion.spring-data-3.1=[3,4.Alpha) -Dversion.spring-data-3.1-spring=[6.0,6.1.Alpha) -Dversion.spring-data-3.1-spring-boot=[3,4.Alpha)" | ||
fi | ||
|
||
exec bash $DIR/../build.sh |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!-- | ||
Copyright 2014 - 2023 Blazebit. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
|
||
<profiles> | ||
<profile> | ||
<id>latest</id> | ||
<repositories> | ||
<repository> | ||
<id>sonatype-nexus-snapshots</id> | ||
<name>Sonatype Nexus Snapshots</name> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url> | ||
</repository> | ||
</repositories> | ||
</profile> | ||
</profiles> | ||
|
||
</settings> |
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
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
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
Oops, something went wrong.