GEOMESA-3049 Add scaladocs to CI build #1
Workflow file for this run
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: build | |
on: | |
push: | |
branches: | |
- main | |
- '[0-9]+.[0-9]+.x' | |
tags: | |
- '**' | |
pull_request: | |
permissions: # added using https://github.com/step-security/secure-repo | |
contents: read | |
env: | |
MAVEN_CLI_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false --batch-mode | |
jobs: | |
build-scala: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [ "2.12", "2.13" ] | |
uses: ./.github/workflows/build-and-test.yml | |
with: | |
scala-version: ${{ matrix.version }} | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | |
with: | |
key: ${{ hashFiles('**/pom.xml') }}-docs | |
path: ~/.m2/repository/ | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
cache-dependency-path: docs/requirements.txt | |
- name: Install python dependencies | |
run: pip install -r docs/requirements.txt | |
- name: Build with Maven | |
run: mvn clean install $MAVEN_CLI_OPTS -Pdocs -pl docs | |
- name: Remove geomesa artifacts | |
if: success() || failure() | |
run: rm -rf ~/.m2/repository/org/locationtech/geomesa | |
check-dependency-licenses: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | |
with: | |
key: ${{ hashFiles('**/pom.xml') }}-dash | |
path: | | |
~/.m2/repository/ | |
build/zinc-0.3.15/ | |
- name: Build with Maven | |
run: ./build/mvn clean install $MAVEN_CLI_OPTS -DskipTests -T4 | |
- name: License check | |
run: mvn org.eclipse.dash:license-tool-plugin:license-check $MAVEN_CLI_OPTS -Pdash -Ddash.fail=true -Ddash.projectId=locationtech.geomesa -DexcludeGroupIds=org.locationtech.geomesa | |
- name: Show license | |
if: success() || failure() | |
run: cat target/dash/summary | |
- name: Remove geomesa artifacts | |
if: success() || failure() | |
run: rm -rf ~/.m2/repository/org/locationtech/geomesa | |
check-license-headers: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | |
with: | |
key: ${{ hashFiles('**/pom.xml') }}-license-header-check | |
path: ~/.m2/repository/ | |
- name: Run license check | |
run: mvn license:check $MAVEN_CLI_OPTS |