You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/03/01 08:39:58 UTC

[camel-performance-tests] branch main updated: ci: added a Github workflow action to compile the project when receiving PRs

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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-performance-tests.git


The following commit(s) were added to refs/heads/main by this push:
     new eef6d04  ci: added a Github workflow action to compile the project when receiving PRs
eef6d04 is described below

commit eef6d04c8c541af946b870f16ec1aecb9bbc8f17
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Mar 1 09:38:15 2023 +0100

    ci: added a Github workflow action to compile the project when receiving PRs
---
 .github/workflows/pr-build-main.yml | 44 +++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/.github/workflows/pr-build-main.yml b/.github/workflows/pr-build-main.yml
new file mode 100644
index 0000000..e0566ca
--- /dev/null
+++ b/.github/workflows/pr-build-main.yml
@@ -0,0 +1,44 @@
+#
+# 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: PR Build (Camel 4)
+
+on:
+  pull_request:
+    branches:
+      - main
+    paths-ignore:
+      - README.md
+      - NOTICE.txt
+      - LICENSE.txt
+
+jobs:
+  compile:
+    if: github.repository == 'apache/camel'
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v3
+      with:
+        persist-credentials: false
+    - name: Set up JDK
+      uses: actions/setup-java@v3
+      with:
+        distribution: 'temurin'
+        java-version: 17
+        cache: 'maven'
+    - name: Maven build
+      run: mvn -V -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --no-transfer-progress clean compile