forked from hibernate/hibernate-reactive
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
6 changed files
with
32 additions
and
276 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,13 +1,12 @@ | ||
# GitHub actions for branch testing the latest Hibernate ORM 6.5 snapshot | ||
name: Hibernate Reactive CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '2.*' | ||
- wip/2.3 | ||
pull_request: | ||
branches: main | ||
branches: wip/2.3 | ||
|
||
# See https://github.com/hibernate/hibernate-orm/pull/4615 for a description of the behavior we're getting. | ||
concurrency: | ||
|
@@ -24,6 +23,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
orm-version: [ '6.5.3-SNAPSHOT' ] | ||
example: [ 'session-example', 'native-sql-example' ] | ||
db: [ 'MySQL', 'PostgreSQL' ] | ||
exclude: | ||
|
@@ -85,6 +85,9 @@ jobs: | |
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
- name: Print the effective ORM version used | ||
run: ./gradlew :${{ matrix. }}:dependencyInsight --dependency org.hibernate.orm:hibernate-core \ | ||
-PhibernateOrmVersion='${{ matrix.orm-version }}' -PskipOrmVersionParsing -PenableSonatypeOpenSourceSnapshotsRep | ||
- name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }} | ||
run: ./gradlew :${{ matrix.example }}:runAllExamplesOn${{ matrix.db }} | ||
- name: Upload reports (if build failed) | ||
|
@@ -99,6 +102,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
orm-version: [ '6.5.3-SNAPSHOT' ] | ||
db: [ 'MariaDB', 'MySQL', 'PostgreSQL', 'MSSQLServer', 'CockroachDB', 'Db2', 'Oracle' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -122,8 +126,12 @@ jobs: | |
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
- name: Print the effective ORM version used | ||
run: ./gradlew :hibernate-reactive-core:dependencyInsight --dependency org.hibernate.orm:hibernate-core \ | ||
-PhibernateOrmVersion='${{ matrix.orm-version }}' -PskipOrmVersionParsing -PenableSonatypeOpenSourceSnapshotsRep | ||
- name: Build and Test with ${{ matrix.db }} | ||
run: ./gradlew build -PshowStandardOutput -Pdocker -Pdb=${{ matrix.db }} | ||
run: ./gradlew build -PshowStandardOutput -Pdocker -Pdb=${{ matrix.db }} \ | ||
-PhibernateOrmVersion='${{ matrix.orm-version }}' -PskipOrmVersionParsing -PenableSonatypeOpenSourceSnapshotsRep | ||
- name: Upload reports (if build failed) | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
|
@@ -137,6 +145,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
orm-version: [ '6.5.3-SNAPSHOT' ] | ||
# To list the available "feature versions" on adoptium.net (ignore "tip_version", it's not relevant): | ||
# https://api.adoptium.net/v3/info/available_releases | ||
# To list the available releases for a given "feature version" on adoptium.net (example for 16): | ||
|
@@ -200,73 +209,18 @@ jobs: | |
- name: Display exact version of JDK ${{ matrix.java.name }} | ||
run: | | ||
${{ steps.testjdk-exportpath.outputs.path }}/bin/java -version | ||
- name: Print the effective ORM version used | ||
run: ./gradlew :${{ matrix.example }}:dependencyInsight --dependency org.hibernate.orm:hibernate-core \ | ||
-PhibernateOrmVersion='${{ matrix.orm-version }}' -PskipOrmVersionParsing -PenableSonatypeOpenSourceSnapshotsRep | ||
- name: Build and Test with Java ${{ matrix.java.name }} | ||
run: | | ||
./gradlew build -PshowStandardOutput -Pdocker -Ptest.jdk.version=${{ matrix.java.java_version_numeric }} \ | ||
-Porg.gradle.java.installations.paths=${{ steps.mainjdk-exportpath.outputs.path }},${{ steps.testjdk-exportpath.outputs.path }} \ | ||
${{ matrix.java.jvm_args && '-Ptest.jdk.launcher.args=' }}${{ matrix.java.jvm_args }} | ||
${{ matrix.java.jvm_args && '-Ptest.jdk.launcher.args=' }}${{ matrix.java.jvm_args }} \ | ||
-PhibernateOrmVersion='${{ matrix.orm-version }}' -PskipOrmVersionParsing -PenableSonatypeOpenSourceSnapshotsRep | ||
- name: Upload reports (if build failed) | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: reports-java${{ matrix.java.name }} | ||
path: './**/build/reports/' | ||
|
||
snapshot: | ||
name: Create snapshot | ||
if: github.event_name == 'push' && startsWith( github.ref, 'refs/heads/' ) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
- name: Create artifacts | ||
run: ./gradlew assemble | ||
- name: Detect the version of Hibernate Reactive | ||
id: detect-version | ||
run: | | ||
sed -E 's/^projectVersion( *= *| +)([^ ]+)/::set-output name=version::\2/g' gradle/version.properties | ||
- name: Publish snapshot to JBoss Nexus | ||
env: | ||
ORG_GRADLE_PROJECT_jbossNexusUser: ${{ secrets.JBOSS_NEXUS_USER }} | ||
ORG_GRADLE_PROJECT_jbossNexusPassword: ${{ secrets.JBOSS_NEXUS_PASSWORD }} | ||
if: endsWith( steps.detect-version.outputs.version, '-SNAPSHOT' ) && env.ORG_GRADLE_PROJECT_jbossNexusUser | ||
run: ./gradlew publishToJBossNexus closeAndReleaseJBossNexusStagingRepository | ||
|
||
release: | ||
name: Release | ||
if: github.event_name == 'push' && startsWith( github.ref, 'refs/tags/' ) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set git username and email | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "hibernate" | ||
- name: Set up JDK 11 | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
- name: Create artifacts | ||
run: ./gradlew assemble | ||
- name: Install SSH key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
key: ${{ secrets.HIBERNATE_ORG_SSH_KEY }} | ||
name: id_rsa_hibernate.org | ||
known_hosts: ${{ secrets.HIBERNATE_ORG_SSH_KNOWN_HOSTS }} | ||
config: | | ||
Host github.com | ||
User hibernate | ||
IdentityFile ~/.ssh/id_rsa_hibernate.org | ||
- name: Publish documentation on Hibernate.org | ||
run: ./gradlew publishDocumentation -PdocPublishBranch=production | ||
- name: Publish artifacts to OSSRH, close repository and release | ||
env: | ||
ORG_GRADLE_PROJECT_sonatypeOssrhUser: ${{ secrets.SONATYPE_OSSRH_USER }} | ||
ORG_GRADLE_PROJECT_sonatypeOssrhPassword: ${{ secrets.SONATYPE_OSSRH_PASSWORD }} | ||
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
path: './**/build/reports/' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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