Skip to content

Commit 18cca3f

Browse files
committed
Update CI action to use JDBC driver tests
1 parent a981125 commit 18cca3f

File tree

1 file changed

+32
-13
lines changed

1 file changed

+32
-13
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- develop
87
- release*
98
pull_request:
109
type: [opened, reopened, edited, synchronize]
@@ -22,18 +21,19 @@ jobs:
2221
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always -DYDB_DOCKER_ISOLATION=true
2322

2423
steps:
25-
- uses: actions/checkout@v4
26-
with:
27-
path: sdk
28-
2924
- name: Set up JDK 8
3025
uses: actions/setup-java@v4
3126
with:
3227
java-version: ${{ matrix.java }}
3328
distribution: 'temurin'
3429
cache: 'maven'
3530

36-
- name: Extract SDK version
31+
- name: Checkout YDB Java SDK
32+
uses: actions/checkout@v4
33+
with:
34+
path: sdk
35+
36+
- name: Extract YDB Java SDK version
3737
working-directory: ./sdk
3838
run: |
3939
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
@@ -45,18 +45,18 @@ jobs:
4545
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
4646
echo "AUTH_API_VERSION=$VERSION" >> "$GITHUB_ENV"
4747
48-
- name: Download YDK SDK dependencies
48+
- name: Download YDB Java SDK dependencies
4949
working-directory: ./sdk
5050
run: mvn $MAVEN_ARGS dependency:go-offline
5151

52-
- name: Build YDB SDK
52+
- name: Build YDB Java SDK
5353
working-directory: ./sdk
5454
run: mvn $MAVEN_ARGS install
5555

56-
- uses: actions/checkout@v4
56+
- name: Checkout YDB YC Auth provider
57+
uses: actions/checkout@v4
5758
with:
5859
repository: ydb-platform/ydb-java-yc
59-
ref: develop
6060
path: yc
6161

6262
- name: Download YDB YC Auth provider dependencies
@@ -67,16 +67,35 @@ jobs:
6767
working-directory: ./yc
6868
run: mvn $MAVEN_ARGS -Dydb.auth-api.version=$AUTH_API_VERSION install
6969

70+
- name: Checkout YDB JDBC Driver
71+
uses: actions/checkout@v4
72+
with:
73+
repository: ydb-platform/ydb-jdbc-driver
74+
path: jdbc
75+
76+
- name: Extract YDB JDBC Driver version
77+
working-directory: ./jdbc
78+
run: |
79+
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
80+
echo "JDBC_VERSION=$VERSION" >> "$GITHUB_ENV"
81+
82+
- name: Download YDB JDBC Driver dependencies
83+
working-directory: ./jdbc
84+
run: mvn $MAVEN_ARGS -Dydb.sdk.version=$SDK_VERSION dependency:go-offline
85+
86+
- name: Build YDB JDBC Driver with tests
87+
working-directory: ./jdbc
88+
run: mvn $MAVEN_ARGS -Dydb.sdk.version=$SDK_VERSION install
89+
7090
- uses: actions/checkout@v4
7191
with:
7292
repository: ydb-platform/ydb-java-examples
73-
ref: master
7493
path: examples
7594

7695
- name: Download dependencies
7796
working-directory: ./examples
78-
run: mvn $MAVEN_ARGS -Dydb.sdk.version=$SDK_VERSION dependency:go-offline
97+
run: mvn $MAVEN_ARGS -Dydb.sdk.version=$SDK_VERSION -Dydb.jdbc.version=$JDBC_VERSION dependency:go-offline
7998

8099
- name: Test examples with Maven
81100
working-directory: ./examples
82-
run: mvn $MAVEN_ARGS -Dydb.sdk.version=$SDK_VERSION test
101+
run: mvn $MAVEN_ARGS -Dydb.sdk.version=$SDK_VERSION -Dydb.jdbc.version=$JDBC_VERSION test

0 commit comments

Comments
 (0)