Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/checkout-and-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ runs:
- name: Build with Maven
shell: bash
run: |
mvn install -Dmaven.test.skip=${{ inputs.skip_tests_on_build }}
mvn install -Dmaven.test.skip=${{ inputs.skip_tests_on_build }} -Dgpg.skip
45 changes: 45 additions & 0 deletions .github/workflows/ci-docs-compile-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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: 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: Build with Maven
shell: bash
id: build
run: |
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='files(\"${{ steps.build.outputs.jar_path }}\")'
docs-repo-token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}
Loading