-
Notifications
You must be signed in to change notification settings - Fork 7
61 lines (49 loc) · 1.75 KB
/
ci-spring-data-jdbc-ydb.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Spring Data JDBC YDB Dialect CI with Maven
on:
push:
paths:
- 'spring-data-jdbc-ydb/**'
branches:
- main
pull_request:
paths:
- 'spring-data-jdbc-ydb/**'
env:
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always
jobs:
build:
name: Spring Data JDBC YDB 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 spring-data-jdbc YDB dialect version
working-directory: ./spring-data-jdbc-ydb
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "SPRING_DATA_JDBC_DIALECT_VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Download spring-data-jdbc YDB dialect dependencies
working-directory: ./spring-data-jdbc-ydb
run: mvn $MAVEN_ARGS dependency:go-offline
- name: Build spring-data-jdbc YDB dialect
working-directory: ./spring-data-jdbc-ydb
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-jdbc
run: mvn $MAVEN_ARGS -Dspring.data.jdbc.ydb.version=$SPRING_DATA_JDBC_DIALECT_VERSION dependency:go-offline
- name: Test examples with Maven
working-directory: ./examples/jdbc/spring-data-jdbc
run: mvn $MAVEN_ARGS -Dspring.data.jdbc.ydb.version=$SPRING_DATA_JDBC_DIALECT_VERSION test