-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (33 loc) · 1.11 KB
/
_docs-compile-tests.yml
File metadata and controls
38 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: 17
distribution: 'temurin'
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)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Run compilation tests
uses: datastax/astra-client-docs-tests/.github/actions/test-compilation@master
with:
clients: 'java'
args: -A java='\"com.datastax.astra:astra-db-java:${{ steps.build.outputs.version }}\"'
docs-repo-token: ${{ secrets.DOC_GITHUB_PAT_CROSS_ORG }}