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 2022/04/05 09:08:30 UTC

[camel-spring-boot] branch main updated: (chores) CI: added dry-run build for pull-requests

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-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 48550494876 (chores) CI: added dry-run build for pull-requests
48550494876 is described below

commit 485504948760a096f353f111ac5c2ae9dadf6063
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Apr 5 11:08:06 2022 +0200

    (chores) CI: added dry-run build for pull-requests
---
 .github/workflows/pr-build.yml | 50 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml
new file mode 100644
index 00000000000..d30fc9953e2
--- /dev/null
+++ b/.github/workflows/pr-build.yml
@@ -0,0 +1,50 @@
+#
+# 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
+
+on:
+  pull_request:
+    branches:
+      - main
+    paths-ignore:
+      - README.md
+      - Jenkinsfile
+      - Jenkinsfile.*
+      - '*.txt'
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+      with:
+        persist-credentials: false
+    - name: Set up JDK
+      uses: actions/setup-java@v2
+      with:
+        distribution: 'temurin'
+        java-version: 11
+        cache: 'maven'
+    - name: Maven Build
+      run: mvn -l build.log -V --no-transfer-progress -Psourcecheck package
+    - name: Archive Logs
+      uses: actions/upload-artifact@v3
+      if: always()
+      with:
+        name: build.log
+        path: build.log