Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ci action, added check spring-data-jpa integration #23

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions .github/workflows/ci-hibernate-dialect-v5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,30 @@ jobs:
distribution: 'temurin'
cache: maven

- name: Run tests with Maven
- name: Extract Hibernate Dialect version
working-directory: ./hibernate-dialect-v5
run: |
cd hibernate-dialect-v5
mvn $MAVEN_ARGS test
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-v5
run: mvn $MAVEN_ARGS dependency:go-offline

- name: Build Hibernate Dialect
working-directory: ./hibernate-dialect-v5
run: mvn $MAVEN_ARGS install

- uses: actions/checkout@v3
with:
repository: ydb-platform/ydb-java-examples
ref: master
path: examples

- name: Download dependencies
working-directory: ./examples/jdbc/spring-data-jpa-v5
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-v5
run: mvn $MAVEN_ARGS -Dhibernate.ydb.dialect.version=$HIBERNATE_DIALECT_VERSION test
29 changes: 26 additions & 3 deletions .github/workflows/ci-hibernate-dialect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,30 @@ jobs:
distribution: 'temurin'
cache: maven

- name: Run tests with Maven
- name: Extract Hibernate Dialect version
working-directory: ./hibernate-dialect
run: |
cd hibernate-dialect
mvn $MAVEN_ARGS test
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@v3
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
2 changes: 1 addition & 1 deletion hibernate-dialect-v5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tech.ydb.dialects</groupId>
<artifactId>hibernate-ydb-dialect-v5</artifactId>
<version>0.9.1</version>
<version>0.9.2-SNAPSHOT</version>

<name>Hibernate V5 YDB Dialect</name>
<description>Support Hibernate version 5 YDB (YQL) Dialect</description>
Expand Down
2 changes: 1 addition & 1 deletion hibernate-dialect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>tech.ydb.dialects</groupId>
<artifactId>hibernate-ydb-dialect</artifactId>
<version>0.9.1</version>
<version>0.9.2-SNAPSHOT</version>

<packaging>jar</packaging>

Expand Down