| name: Fineract Documentation build |
| on: [push, pull_request] |
| |
| permissions: |
| contents: read |
| |
| jobs: |
| build: |
| runs-on: ubuntu-22.04 |
| env: |
| GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} |
| steps: |
| - name: Checkout |
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 |
| with: |
| fetch-depth: 0 |
| - name: Set up JDK 17 |
| uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 |
| with: |
| java-version: '17' |
| distribution: 'zulu' |
| cache: gradle |
| - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 |
| with: |
| node-version: 16 |
| - name: Congfigure vega-cli |
| run: npm i -g vega-cli --unsafe |
| - name: Validate Gradle wrapper |
| uses: gradle/wrapper-validation-action@b231772637bb498f11fdbc86052b6e8a8dc9fc92 |
| - name: Install additional software |
| run: | |
| sudo apt-get update |
| sudo apt-get install ghostscript graphviz -y |
| |
| - name: Documentation build |
| run: ./gradlew --no-daemon --console=plain doc |