changes #155
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: eclipse-dash | |
on: | |
push: | |
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: | |
license-check: | |
runs-on: ubuntu-latest | |
# avoid duplicate jobs on PRs from the main repo | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
cache: 'maven' | |
- 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 |