Run "site" goal for dependabot PRs in CI
@@ -69,7 +69,7 @@ jobs:
if: runner.os == 'macOS'
run: env | grep '^JAVA'
- - name: Build with Maven
+ - name: Maven "verify"
timeout-minutes: 60
shell: bash
run: |
@@ -78,4 +78,20 @@ jobs:
-DtrimStackTrace=false \
-Dsurefire.rerunFailingTestsCount=2 \
-Dlog4j2.junit.fileCleanerSleepPeriodMillis=1000 \
- --global-toolchains ".github/workflows/maven-toolchains.xml"
+ --global-toolchains ".github/workflows/maven-toolchains.xml" \
+ verify
+
+ # Maven `site` goal takes ~1 hour and mostly irrelevant for typical PRs.
+ # Hence, we only execute that for `dependabot` PRs, which tend to break `site` occasionally.
+ - name: Maven "site"
+ if: ${{ github.actor == 'dependabot[bot]' }}
+ timeout-minutes: 60
+ shell: bash
+ run: |
+ ./mvnw \
+ --show-version --batch-mode --errors --no-transfer-progress \
+ --non-recursive \
+ -Dmaven.doap.skip \
+ -DskipTests \
+ --global-toolchains ".github/workflows/maven-toolchains.xml" \
+ site
