Skip to content

Commit 748e365

Browse files
committed
basic docs compilation tests
1 parent e842a7b commit 748e365

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Compile against documentation examples
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
pull_request: # temporary until it's merged
7+
branches: [ KG-ci-additions ]
8+
push:
9+
branches: [ KG-ci-additions ]
10+
11+
jobs:
12+
test-compilation:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
17+
18+
- name: Build client
19+
uses: ./.github/actions/checkout-and-build
20+
21+
- name: Get built JAR path
22+
id: jar
23+
run: |
24+
JAR_PATH=$(ls target/astra-db-java-*.jar)
25+
echo "jar_path=$JAR_PATH" >> $GITHUB_OUTPUT
26+
27+
- name: Run compilation tests
28+
uses: datastax/astra-client-docs-tests/.github/actions/test-compilation@master
29+
with:
30+
clients: 'java'
31+
args: -A java="$${{ steps.jar.outputs.jar_path }}"
32+
docs-repo-token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}

0 commit comments

Comments
 (0)