Skip to content

Commit 0dbd5a4

Browse files
committed
Updated github action for Spring JDBC dialect
1 parent ca9b4a0 commit 0dbd5a4

File tree

2 files changed

+58
-8
lines changed

2 files changed

+58
-8
lines changed

.github/workflows/ci-spring-data-jdbc-ydb.yaml

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,40 @@ env:
1414
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always
1515

1616
jobs:
17+
prepare:
18+
name: Prepare Maven cache
19+
runs-on: ubuntu-24.04
20+
21+
env:
22+
MAVEN_ARGS: --batch-mode -Dstyle.color=always
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Set up JDK
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: '8'
32+
distribution: 'temurin'
33+
cache: 'maven'
34+
35+
- name: Download dependencies (Spring Boot 3)
36+
working-directory: ./spring-data-jdbc-ydb
37+
run: mvn $MAVEN_ARGS -Pspring-boot3 dependency:resolve-plugins dependency:go-offline
38+
39+
- name: Download dependencies (Spring Boot 4)
40+
working-directory: ./spring-data-jdbc-ydb
41+
run: mvn $MAVEN_ARGS -Pspring-boot4 dependency:resolve-plugins dependency:go-offline
42+
1743
build:
18-
name: Spring Data JDBC YDB Dialect
19-
runs-on: ubuntu-latest
44+
name: Spring Data JDBC YDB Dialect build & tests
45+
runs-on: ubuntu-24.04
46+
needs: prepare
2047

2148
strategy:
2249
matrix:
23-
java: [ '17', '21' ]
50+
java: [ '17', '21', '24' ]
2451

2552
steps:
2653
- uses: actions/checkout@v4
@@ -32,16 +59,39 @@ jobs:
3259
distribution: 'temurin'
3360
cache: maven
3461

62+
- name: Build spring-data-jdbc YDB dialect
63+
working-directory: ./spring-data-jdbc-ydb
64+
run: mvn $MAVEN_ARGS -DskipTests=true package
65+
66+
- name: Tests with Spring Boot 3
67+
working-directory: ./spring-data-jdbc-ydb
68+
run: mvn $MAVEN_ARGS -Pspring-boot3 test
69+
70+
- name: Tests with Spring Boot 4
71+
working-directory: ./spring-data-jdbc-ydb
72+
run: mvn $MAVEN_ARGS -Pspring-boot3 test
73+
74+
examples:
75+
name: Spring Data JDBC YDB Dialect Examples
76+
runs-on: ubuntu-24.04
77+
needs: build
78+
79+
steps:
80+
- uses: actions/checkout@v4
81+
82+
- name: Set up JDK
83+
uses: actions/setup-java@v4
84+
with:
85+
java-version: 17
86+
distribution: 'temurin'
87+
cache: maven
88+
3589
- name: Extract spring-data-jdbc YDB dialect version
3690
working-directory: ./spring-data-jdbc-ydb
3791
run: |
3892
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
3993
echo "SPRING_DATA_JDBC_DIALECT_VERSION=$VERSION" >> "$GITHUB_ENV"
4094
41-
- name: Download spring-data-jdbc YDB dialect dependencies
42-
working-directory: ./spring-data-jdbc-ydb
43-
run: mvn $MAVEN_ARGS dependency:go-offline
44-
4595
- name: Build spring-data-jdbc YDB dialect
4696
working-directory: ./spring-data-jdbc-ydb
4797
run: mvn $MAVEN_ARGS install

.github/workflows/publish-spring-data-jdbc-ydb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
jobs:
1212
validate:
1313
name: Validate Spring Data JDBC YDB Dialect
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515

1616
steps:
1717
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)