Skip to content

Commit

Permalink
Update cache policy for CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
alex268 committed Sep 25, 2024
1 parent 18cca3f commit 7ec69af
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,37 @@ jobs:
java: [ '8', '11', '17']

env:
MAVEN_ARGS: --batch-mode --update-snapshots -Dstyle.color=always -DYDB_DOCKER_ISOLATION=true
MAVEN_ARGS: --batch-mode -Dstyle.color=always -DYDB_DOCKER_ISOLATION=true

steps:
- name: Checkout YDB Java SDK
uses: actions/checkout@v4
with:
path: sdk

- name: Checkout YDB YC Auth provider
uses: actions/checkout@v4
with:
repository: ydb-platform/ydb-java-yc
path: yc

- name: Checkout YDB JDBC Driver
uses: actions/checkout@v4
with:
repository: ydb-platform/ydb-jdbc-driver
path: jdbc

- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'

- name: Checkout YDB Java SDK
uses: actions/checkout@v4
with:
path: sdk
cache-dependency-path: |
sdk/pom.xml
sdk/bom/pom.xml
yc/pom.xml
jdbc/pom.xml
- name: Extract YDB Java SDK version
working-directory: ./sdk
Expand All @@ -53,12 +70,6 @@ jobs:
working-directory: ./sdk
run: mvn $MAVEN_ARGS install

- name: Checkout YDB YC Auth provider
uses: actions/checkout@v4
with:
repository: ydb-platform/ydb-java-yc
path: yc

- name: Download YDB YC Auth provider dependencies
working-directory: ./yc
run: mvn $MAVEN_ARGS -Dydb.auth-api.version=$AUTH_API_VERSION dependency:go-offline
Expand All @@ -67,12 +78,6 @@ jobs:
working-directory: ./yc
run: mvn $MAVEN_ARGS -Dydb.auth-api.version=$AUTH_API_VERSION install

- name: Checkout YDB JDBC Driver
uses: actions/checkout@v4
with:
repository: ydb-platform/ydb-jdbc-driver
path: jdbc

- name: Extract YDB JDBC Driver version
working-directory: ./jdbc
run: |
Expand Down

0 comments on commit 7ec69af

Please sign in to comment.