feat: added support UUID YDB type #81
Workflow file for this run
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
name: YDB Hibernate Dialect CI with Maven | |
on: | |
push: | |
paths: | |
- 'hibernate-dialect/**' | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'hibernate-dialect/**' | |
env: | |
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always | |
jobs: | |
build: | |
name: YDB Java Hibernate Dialect | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ '17', '21' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{matrix.java}} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{matrix.java}} | |
distribution: 'temurin' | |
cache: maven | |
- name: Extract Hibernate Dialect version | |
working-directory: ./hibernate-dialect | |
run: | | |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | |
echo "HIBERNATE_DIALECT_VERSION=$VERSION" >> "$GITHUB_ENV" | |
- name: Download Hibernate Dialect dependencies | |
working-directory: ./hibernate-dialect | |
run: mvn $MAVEN_ARGS dependency:go-offline | |
- name: Build Hibernate Dialect | |
working-directory: ./hibernate-dialect | |
run: mvn $MAVEN_ARGS install | |
- uses: actions/checkout@v4 | |
with: | |
repository: ydb-platform/ydb-java-examples | |
ref: master | |
path: examples | |
- name: Download dependencies | |
working-directory: ./examples/jdbc/spring-data-jpa | |
run: mvn $MAVEN_ARGS -Dhibernate.ydb.dialect.version=$HIBERNATE_DIALECT_VERSION dependency:go-offline | |
- name: Test examples with Maven | |
working-directory: ./examples/jdbc/spring-data-jpa | |
run: mvn $MAVEN_ARGS -Dhibernate.ydb.dialect.version=$HIBERNATE_DIALECT_VERSION test |