This is an automated email from the ASF dual-hosted git repository. valdar pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git
commit ca263464838e521dbd6d4dfcd3a0f0314f10b9cc Author: Andrea Tarocchi <andrea.taroc...@gmail.com> AuthorDate: Mon Jan 13 00:44:42 2020 +0100 Added sourcecheck to github actions, added master push github action workflow and badge in readme. --- .../workflows/{pr-build.yml => master-pr-build.yml} | 8 +++++--- .../{pr-build.yml => master-push-build.yml} | 20 +++++++++++--------- README.adoc | 1 + parent/pom.xml | 9 +++++++++ 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/master-pr-build.yml similarity index 79% copy from .github/workflows/pr-build.yml copy 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 @@ jobs: 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% rename from .github/workflows/pr-build.yml rename 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 @@ jobs: 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>