Skip to content

feat: full support datetime, date, timestamp types (#158) #115

feat: full support datetime, date, timestamp types (#158)

feat: full support datetime, date, timestamp types (#158) #115

name: YDB Liquibase Dialect CI with Maven
on:
push:
paths:
- 'liquibase-dialect/**'
branches:
- main
pull_request:
paths:
- 'liquibase-dialect/**'
env:
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always
jobs:
build:
name: YDB Liquibase Dialect
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17' ]
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 Liquibase Dialect version
working-directory: ./liquibase-dialect
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "LIQUIBASE_DIALECT_VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Download Liquibase Dialect dependencies
working-directory: ./liquibase-dialect
run: mvn $MAVEN_ARGS dependency:go-offline
- name: Build Liquibase Dialect
working-directory: ./liquibase-dialect
run: mvn $MAVEN_ARGS clean test
build-example-springboot-app:
name: Test Spring Boot App Example
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
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 Liquibase Dialect version
working-directory: ./liquibase-dialect
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "LIQUIBASE_DIALECT_VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Download Liquibase Dialect dependencies
working-directory: ./liquibase-dialect
run: mvn $MAVEN_ARGS dependency:go-offline
- name: Build Liquibase Dialect
working-directory: ./liquibase-dialect
run: mvn $MAVEN_ARGS install
- name: Test Spring Boot App Example
uses: actions/checkout@v4
with:
repository: ydb-platform/ydb-java-examples
ref: master
path: examples
- name: Download dependencies
working-directory: ./examples/jdbc/spring-liquibase-app
run: mvn $MAVEN_ARGS -Dliquibase.ydb.dialect.version=$LIQUIBASE_DIALECT_VERSION dependency:go-offline
- name: Test examples with Maven
working-directory: ./examples/jdbc/spring-liquibase-app
run: mvn $MAVEN_ARGS -Dliquibase.ydb.dialect.version=$LIQUIBASE_DIALECT_VERSION test