You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2020/03/25 18:35:35 UTC
[camel-quarkus] branch master updated: Speedup the Validate PR
Style GH workflow by invoking only mvn validate
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push:
new 3868e80 Speedup the Validate PR Style GH workflow by invoking only mvn validate
3868e80 is described below
commit 3868e805e9c0518be01d7be8fa11ecd809569087
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Wed Mar 25 15:39:45 2020 +0100
Speedup the Validate PR Style GH workflow by invoking only mvn validate
---
.github/workflows/pr-validate.yml | 4 ++--
pom.xml | 10 ++++++++++
poms/build-parent/pom.xml | 16 ++++++++++++++++
3 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pr-validate.yml b/.github/workflows/pr-validate.yml
index b54f682..b29cebc 100644
--- a/.github/workflows/pr-validate.yml
+++ b/.github/workflows/pr-validate.yml
@@ -45,10 +45,10 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- - name: mvn package
+ - name: mvn validate
run: |
./mvnw ${BRANCH_OPTIONS} -fae -ntp \
-DskipTests \
-Pcheck-format \
- clean package
+ clean validate
diff --git a/pom.xml b/pom.xml
index 86b2a96..b047941 100644
--- a/pom.xml
+++ b/pom.xml
@@ -605,6 +605,16 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>camel-quarkus-enforcer-rules</id>
+ <phase /><!-- Speedup the check-format profile by skipping the enforcer -->
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
diff --git a/poms/build-parent/pom.xml b/poms/build-parent/pom.xml
index 547dec7..fba0adf 100644
--- a/poms/build-parent/pom.xml
+++ b/poms/build-parent/pom.xml
@@ -262,6 +262,7 @@
<goals>
<goal>validate</goal>
</goals>
+ <phase>validate</phase>
</execution>
</executions>
</plugin>
@@ -271,9 +272,24 @@
<executions>
<execution>
<id>sort-imports</id>
+ <phase />
+ </execution>
+ <execution>
+ <id>check-imports</id>
<goals>
<goal>check</goal>
</goals>
+ <phase>validate</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.gmaven</groupId>
+ <artifactId>groovy-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>sanity-checks</id>
+ <phase /><!-- Speedup the check-format profile by skipping the sanity-checks -->
</execution>
</executions>
</plugin>