Skip to content

Commit 325746d

Browse files
committed
well it works a bit. I think it just needs to be updated for v2.1.5
1 parent 9ac1e54 commit 325746d

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

‎.github/workflows/ci-docs-compile-tests.yml‎

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,31 @@ jobs:
1515
- name: Checkout repository
1616
uses: actions/checkout@v6
1717

18-
- name: Build client
19-
uses: ./.github/actions/checkout-and-build
18+
- name: Install maven
19+
shell: bash
20+
run: |
21+
sudo apt update
22+
sudo apt install maven -y
23+
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v5
26+
with:
27+
distribution: adopt
28+
java-version: 17
29+
cache: maven
2030

21-
- name: Get built JAR path
22-
id: jar
31+
- name: Build with Maven
32+
shell: bash
33+
id: build
2334
run: |
24-
JAR_PATH=$(ls target/astra-db-java-*.jar)
35+
mvn install -pl astra-db-java -am -Dmaven.test.skip=true -Dgpg.skip
36+
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
37+
JAR_PATH="$HOME/.m2/repository/com/datastax/astra/astra-db-java/$VERSION/astra-db-java-$VERSION.jar"
2538
echo "jar_path=$JAR_PATH" >> $GITHUB_OUTPUT
2639
2740
- name: Run compilation tests
2841
uses: datastax/astra-client-docs-tests/.github/actions/test-compilation@master
2942
with:
3043
clients: 'java'
31-
args: -A java="$${{ steps.jar.outputs.jar_path }}"
44+
args: -A java='files(\"${{ steps.build.outputs.jar_path }}\")'
3245
docs-repo-token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}

0 commit comments

Comments
 (0)