Added sourcecheck to github actions, added master push github action workflow and badge in readme.
diff --git a/.github/workflows/pr-build.yml b/.github/workflows/master-pr-build.yml
similarity index 79%
rename from .github/workflows/pr-build.yml
rename to .github/workflows/master-pr-build.yml
index c331ad5..37c750c 100644
--- a/.github/workflows/pr-build.yml
+++ b/.github/workflows/master-pr-build.yml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-name: Build PR
+name: master pr build
on:
pull_request:
@@ -33,5 +33,7 @@
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- - name: mvn verify
- run: ./mvnw -V --no-transfer-progress clean install -DskipIntegrationTests=false
+ - name: mvn sourcecheck
+ run: ./mvnw -V --no-transfer-progress -Dcheckstyle.failOnViolation=true -Psourcecheck -DskipTests clean verify
+ - name: mvn build and itests
+ run: ./mvnw -V --no-transfer-progress -DskipIntegrationTests=false clean install
diff --git a/.github/workflows/pr-build.yml b/.github/workflows/master-push-build.yml
similarity index 66%
copy from .github/workflows/pr-build.yml
copy to .github/workflows/master-push-build.yml
index c331ad5..d36e1bd 100644
--- a/.github/workflows/pr-build.yml
+++ b/.github/workflows/master-push-build.yml
@@ -15,10 +15,10 @@
# limitations under the License.
#
-name: Build PR
+name: master build
on:
- pull_request:
+ push:
branches:
- master
jobs:
@@ -28,10 +28,12 @@
matrix:
java: [ '1.8', '11' ]
steps:
- - uses: actions/checkout@v1
- - name: Set up JDK ${{ matrix.java }}
- uses: actions/setup-java@v1
- with:
- java-version: ${{ matrix.java }}
- - name: mvn verify
- run: ./mvnw -V --no-transfer-progress clean install -DskipIntegrationTests=false
+ - uses: actions/checkout@v1
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: mvn sourcecheck
+ run: ./mvnw -V --no-transfer-progress -Dcheckstyle.failOnViolation=true -Psourcecheck -DskipTests clean verify
+ - name: mvn build and itests
+ run: ./mvnw -V --no-transfer-progress -DskipIntegrationTests=false clean install
diff --git a/README.adoc b/README.adoc
index d2db51a..0f8d3f8 100644
--- a/README.adoc
+++ b/README.adoc
@@ -1,6 +1,7 @@
== Camel Kafka Connector
image:https://img.shields.io/gitter/room/apache/camel-kafka-connector["Chat on Gitter", link="https://gitter.im/apache/camel-kafka-connector"]
+image:https://github.com/apache/camel-kafka-connector/workflows/master%20build/badge.svg[Master Build, link="https://github.com/apache/camel-kafka-connector/actions?query=workflow%3A%22master+build%22"]
=== Introduction
[NOTE]
diff --git a/parent/pom.xml b/parent/pom.xml
index a9cdf46..e2f9255 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -62,6 +62,7 @@
<version.scala.library>2.12.4</version.scala.library>
<version.testcontainers>1.12.4</version.testcontainers>
<version.qpid-jms-client>0.40.0</version.qpid-jms-client>
+ <version.maven.maven-remote-resources-plugin>1.6.0</version.maven.maven-remote-resources-plugin>
<version.maven.checkstyle>8.26</version.maven.checkstyle>
<version.maven.checkstyle.plugin>3.1.0</version.maven.checkstyle.plugin>
@@ -70,6 +71,8 @@
<itest.zookeeper.container.image>strimzi/kafka:0.16.0-rc1-kafka-2.4.0</itest.zookeeper.container.image>
<itest.strimzi.container.image>strimzi/kafka:0.16.0-rc1-kafka-2.4.0</itest.strimzi.container.image>
+
+ <checkstyle.failOnViolation>false</checkstyle.failOnViolation>
</properties>
<repositories>
@@ -386,6 +389,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-remote-resources-plugin</artifactId>
+ <version>${version.maven.maven-remote-resources-plugin}</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${version.maven.checkstyle.plugin}</version>
<dependencies>