Update dependency.pmd.version to v7.9.0 #2377
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: Test, build, and upload ArchitectureAnimator | |
on: | |
push: | |
branches: | |
- master | |
- release | |
pull_request: | |
branches: | |
- master | |
- release | |
workflow_dispatch: | |
env: | |
MAVEN_OPTS: "-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up JDK 21 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Cache local Maven repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build the project and run static analysis tools. | |
run: mvn --batch-mode -P=errorprone clean test install checkstyle:checkstyle pmd:check -Dactions.run.id=$GITHUB_RUN_ID -Dactions.run.number=$GITHUB_RUN_NUMBER | |
- name: Build the javadocs | |
run: mvn --batch-mode -P=docs -DskipTests install antrun:run lombok:delombok javadoc:javadoc javadoc:aggregate | |
if: github.event_name == 'push' && github.ref == 'refs/heads/release' | |
- name: Upload AnimatedArchitecture-Spigot | |
uses: actions/upload-artifact@v4 | |
with: | |
name: AnimatedArchitecture-Spigot | |
path: animatedarchitecture-spigot/spigot-packager/target/AnimatedArchitecture-Spigot.jar | |
if-no-files-found: error | |
compression-level: 0 | |
# Publish java doc page when a commit/PR is pushed/merged to master | |
- name: Deploy Javadoc | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: target/site/apidocs | |
target-folder: javadoc | |
if: github.event_name == 'push' && github.ref == 'refs/heads/release' |