You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2022/02/22 20:14:56 UTC
[logging-log4j2] branch release-2.x updated: Run "site" goal for dependabot PRs in CI
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new df06a79 Run "site" goal for dependabot PRs in CI
df06a79 is described below
commit df06a7901d0e78a4f6ad52645c815ddab355a990
Author: Volkan Yazici <vo...@yazi.ci>
AuthorDate: Tue Feb 22 21:02:54 2022 +0100
Run "site" goal for dependabot PRs in CI
---
.github/workflows/build.yml | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d9e2bc3..a1481a9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -69,13 +69,29 @@ jobs:
if: runner.os == 'macOS'
run: env | grep '^JAVA'
- - name: Build with Maven
+ - name: Maven "verify"
timeout-minutes: 60
shell: bash
run: |
./mvnw \
- --show-version --batch-mode --errors --no-transfer-progress \
- -DtrimStackTrace=false \
- -Dsurefire.rerunFailingTestsCount=2 \
- -Dlog4j2.junit.fileCleanerSleepPeriodMillis=1000 \
- --global-toolchains ".github/workflows/maven-toolchains.xml"
+ --show-version --batch-mode --errors --no-transfer-progress \
+ -DtrimStackTrace=false \
+ -Dsurefire.rerunFailingTestsCount=2 \
+ -Dlog4j2.junit.fileCleanerSleepPeriodMillis=1000 \
+ --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