Try CI cache functionality #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
java: | |
name: Java ${{ matrix.java }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: maven | |
- name: Build | |
run: ./mvnw -B --no-transfer-progress -DskipTests package | |
#javadoc: | |
# name: Javadoc | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: actions/setup-java@v3 | |
# with: | |
# distribution: temurin | |
# java-version: 17 | |
# - name: Generate javadoc | |
# run: ./mvnw -B --no-transfer-progress -DskipTests package javadoc:aggregate | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Set up sphinx | |
run: | | |
cd docs | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Generate screenshots | |
run: | | |
cd docs/capture | |
npm ci | |
npm start& | |
npx wait-on http://127.0.0.1:8080 | |
npm run capture | |
env: | |
CI: true | |
- name: Generate docs | |
run: | | |
cd docs | |
make html |