From 748e36575383aa13106e36b85cb38bfdf15f5bb6 Mon Sep 17 00:00:00 2001 From: toptobes Date: Wed, 18 Feb 2026 19:44:11 -0800 Subject: [PATCH 1/3] basic docs compilation tests --- .github/workflows/ci-docs-compile-tests.yml | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci-docs-compile-tests.yml diff --git a/.github/workflows/ci-docs-compile-tests.yml b/.github/workflows/ci-docs-compile-tests.yml new file mode 100644 index 0000000..95edef6 --- /dev/null +++ b/.github/workflows/ci-docs-compile-tests.yml @@ -0,0 +1,32 @@ +name: Compile against documentation examples + +on: + workflow_call: + workflow_dispatch: + pull_request: # temporary until it's merged + branches: [ KG-ci-additions ] + push: + branches: [ KG-ci-additions ] + +jobs: + test-compilation: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Build client + uses: ./.github/actions/checkout-and-build + + - name: Get built JAR path + id: jar + run: | + JAR_PATH=$(ls target/astra-db-java-*.jar) + echo "jar_path=$JAR_PATH" >> $GITHUB_OUTPUT + + - name: Run compilation tests + uses: datastax/astra-client-docs-tests/.github/actions/test-compilation@master + with: + clients: 'java' + args: -A java="$${{ steps.jar.outputs.jar_path }}" + docs-repo-token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }} From 9ac1e54c3f3ad2af18dec754393ea8bda06b7b9b Mon Sep 17 00:00:00 2001 From: toptobes Date: Wed, 18 Feb 2026 19:51:29 -0800 Subject: [PATCH 2/3] try fix gpg issue? --- .github/actions/checkout-and-build/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/checkout-and-build/action.yml b/.github/actions/checkout-and-build/action.yml index a15d31b..0a0c191 100644 --- a/.github/actions/checkout-and-build/action.yml +++ b/.github/actions/checkout-and-build/action.yml @@ -33,4 +33,4 @@ runs: - name: Build with Maven shell: bash run: | - mvn install -Dmaven.test.skip=${{ inputs.skip_tests_on_build }} \ No newline at end of file + mvn install -Dmaven.test.skip=${{ inputs.skip_tests_on_build }} -Dgpg.skip \ No newline at end of file From 325746de05616c7b25e34f82307e951f002e72d9 Mon Sep 17 00:00:00 2001 From: toptobes Date: Thu, 19 Feb 2026 00:13:25 -0800 Subject: [PATCH 3/3] well it works a bit. I think it just needs to be updated for v2.1.5 --- .github/workflows/ci-docs-compile-tests.yml | 25 ++++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-docs-compile-tests.yml b/.github/workflows/ci-docs-compile-tests.yml index 95edef6..f8195e3 100644 --- a/.github/workflows/ci-docs-compile-tests.yml +++ b/.github/workflows/ci-docs-compile-tests.yml @@ -15,18 +15,31 @@ jobs: - name: Checkout repository uses: actions/checkout@v6 - - name: Build client - uses: ./.github/actions/checkout-and-build + - name: Install maven + shell: bash + run: | + sudo apt update + sudo apt install maven -y + + - name: Set up JDK 17 + uses: actions/setup-java@v5 + with: + distribution: adopt + java-version: 17 + cache: maven - - name: Get built JAR path - id: jar + - name: Build with Maven + shell: bash + id: build run: | - JAR_PATH=$(ls target/astra-db-java-*.jar) + mvn install -pl astra-db-java -am -Dmaven.test.skip=true -Dgpg.skip + VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) + JAR_PATH="$HOME/.m2/repository/com/datastax/astra/astra-db-java/$VERSION/astra-db-java-$VERSION.jar" echo "jar_path=$JAR_PATH" >> $GITHUB_OUTPUT - name: Run compilation tests uses: datastax/astra-client-docs-tests/.github/actions/test-compilation@master with: clients: 'java' - args: -A java="$${{ steps.jar.outputs.jar_path }}" + args: -A java='files(\"${{ steps.build.outputs.jar_path }}\")' docs-repo-token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}