File tree Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Expand file tree Collapse file tree 1 file changed +22
-6
lines changed Original file line number Diff line number Diff line change 1010 type : [opened, reopened, edited, synchronize]
1111
1212jobs :
13+ prepare :
14+ name : Prepare Maven cache
15+ runs-on : ubuntu-latest
16+
17+ env :
18+ MAVEN_ARGS : --batch-mode -Dstyle.color=always
19+
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+
24+ - name : Set up JDK
25+ uses : actions/setup-java@v4
26+ with :
27+ java-version : ' 8'
28+ distribution : ' temurin'
29+ cache : ' maven'
30+
31+ - name : Download dependencies for JDBC
32+ run : mvn $MAVEN_ARGS dependency:resolve-plugins dependency:go-offline
33+
1334 build :
1435 name : Build JDBC Driver
1536 runs-on : ubuntu-latest
37+ needs : prepare
1638
1739 strategy :
1840 matrix :
7597 if : env.NEED_SDK == 'true'
7698 run : rm -rf yc
7799
78- - name : Download dependencies
79- run : mvn $MAVEN_ARGS dependency:resolve-plugins dependency:go-offline
80-
81100 - name : Build with Maven
82101 run : mvn $MAVEN_ARGS package
83102
@@ -144,9 +163,6 @@ jobs:
144163 if : env.NEED_SDK == 'true'
145164 run : rm -rf yc
146165
147- - name : Download dependencies
148- run : mvn $MAVEN_ARGS dependency:resolve-plugins dependency:go-offline
149-
150166 - name : Build with Maven
151167 run : mvn $MAVEN_ARGS test
152168
You can’t perform that action at this time.
0 commit comments