You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2023/01/11 14:01:09 UTC

[qpid-broker-j] branch main updated: NO-JIRA: added a GitHub Actions CI workflow

This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git


The following commit(s) were added to refs/heads/main by this push:
     new 72f1941285 NO-JIRA: added a GitHub Actions CI workflow
72f1941285 is described below

commit 72f194128571aa4b1286846d075a609d49266b68
Author: dakirily <da...@gmail.com>
AuthorDate: Tue Jan 10 09:46:11 2023 +0100

    NO-JIRA: added a GitHub Actions CI workflow
---
 .github/workflows/build.yml | 71 +++++++++++++++++++++++++++++++++++++++++++++
 README.md                   |  7 +++--
 pom.xml                     |  3 +-
 3 files changed, 76 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000000..94c287008a
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,71 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+name: "Build"
+
+on: [push, pull_request, workflow_dispatch]
+
+jobs:
+  build:
+    runs-on: ubuntu-20.04
+    strategy:
+      fail-fast: false
+      matrix:
+        java: [ 11, 17 ]
+
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/cache@v3
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
+      - name: Install JDK ${{ matrix.java }}
+        uses: actions/setup-java@v3
+        with:
+          java-version: ${{ matrix.java }}
+          distribution: 'temurin'
+
+      - name: Licence Check
+        run: mvn -Papache-release,dependency-check clean apache-rat:check verify -DskipTests -Dgpg.skip -Denforcer.skip=true -Dmaven.javadoc.skip=true
+
+      - name: Archive rat.txt On Failure
+        if: failure()
+        run: tar -czvf licence-check-${{ matrix.java }}.tar.gz **/target/rat.txt
+
+      - name: Install
+        run: mvn clean install -DskipTests=true
+
+      - name: Unit Tests
+        run: mvn test
+
+      - name: Integration Tests
+        run: mvn verify -pl systests/protocol-tests-amqp-0-8,systests/protocol-tests-amqp-0-10,systests/protocol-tests-amqp-1-0,systests/qpid-systests-jms_1.1,systests/qpid-systests-jms_2.0,systests/qpid-systests-http-management -DskipTests=false -DskipITs=false
+
+      - name: Archive Test Logs On Failure
+        if: failure()
+        run: tar -czvf surefire-reports-jdk-${{ matrix.java }}.tar.gz **/target/surefire-reports/*
+
+      - name: Upload Test Logs On Failure
+        if: failure()
+        uses: actions/upload-artifact@v3
+        with:
+          name: surefire-reports-jdk-${{ matrix.java }}
+          path: surefire-reports-jdk-${{ matrix.java }}.tar.gz
+
+      - name: Clean Up Before Caching
+        run: rm -rf ~/.m2/repository/org/apache/qpid
\ No newline at end of file
diff --git a/README.md b/README.md
index 439b6d4c51..0f603d5a43 100644
--- a/README.md
+++ b/README.md
@@ -2,9 +2,10 @@
 
 ---
 
-|CI Process|Status|
-|---|---|
-|Apache Jenkins CI Build|[![Build Status](https://ci-builds.apache.org/buildStatus/icon?job=Qpid%2FQpid-Broker-J-TestMatrix)](https://ci-builds.apache.org/job/Qpid/job/Qpid-Broker-J-TestMatrix/)|
+| CI Process              | Status                                                                                                                                                                    |
+|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| GitHub Actions          | ![Build Status](https://github.com/apache/qpid-broker-j/.github/workflows/build.yml/badge.svg)                                                                            |
+| Apache Jenkins CI Build | [![Build Status](https://ci-builds.apache.org/buildStatus/icon?job=Qpid%2FQpid-Broker-J-TestMatrix)](https://ci-builds.apache.org/job/Qpid/job/Qpid-Broker-J-TestMatrix/) |
 
 ---
 
diff --git a/pom.xml b/pom.xml
index 60698406af..3017d0f449 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,7 +86,7 @@
     <supported-test-profiles-regex>(java-mms.0-9|java-mms.0-9-1|java-mms.0-10|java-mms.1-0|java-bdb.0-9|java-bdb.0-9-1|java-bdb.0-10|java-bdb.1-0|java-dby.0-9|java-dby.0-9-1|java-dby.0-10|java-dby.1-0|java-dby-mem.0-9|java-dby-mem.0-9-1|java-dby-mem.0-10|cpp|java-json.0-9-1|java-json.0-10|java-json.1-0)</supported-test-profiles-regex>
 
     <!-- surefire forked jvm arguments -->
-    <argLine>-Xmx512m</argLine>
+    <argLine>-Xmx768m</argLine>
 
     <!-- Directory used for per test log file output -->
     <test.output.dir>${basedir}${file.separator}target${file.separator}surefire-reports${file.separator}${profile}</test.output.dir>
@@ -1248,7 +1248,6 @@
             <exclude>lib/**</exclude>
             <exclude>test-profiles/test_resources/ssl/**</exclude>
             <exclude>DEPENDENCIES</exclude>
-            <exclude>.travis.yml</exclude>
           </excludes>
         </configuration>
       </plugin>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org