You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/11/22 09:31:31 UTC

[camel-k-runtime] 03/03: chore(build): use action matrix

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

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit b3189c066035df2fa953260ee78ae7bff8c7faa6
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Thu Nov 21 11:04:53 2019 +0100

    chore(build): use action matrix
---
 .github/workflows/pr-build-java-8.yml              | 33 ----------------------
 .../{pr-build-java-11.yml => pr-build.yml}         | 13 +++++----
 2 files changed, 8 insertions(+), 38 deletions(-)

diff --git a/.github/workflows/pr-build-java-8.yml b/.github/workflows/pr-build-java-8.yml
deleted file mode 100644
index 8fd6414..0000000
--- a/.github/workflows/pr-build-java-8.yml
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# 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 PR on Java 8
-
-on: 
-  pull_request:
-    branches: 
-      - master
-jobs:
-  build:
-    runs-on: ubuntu-latest
-    steps:
-    - uses: actions/checkout@v1
-    - name: Set up JDK 1.8
-      uses: actions/setup-java@v1
-      with:
-        java-version: 1.8
-    - name: mvn install
-      run: ./mvnw -V -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean install
diff --git a/.github/workflows/pr-build-java-11.yml b/.github/workflows/pr-build.yml
similarity index 86%
rename from .github/workflows/pr-build-java-11.yml
rename to .github/workflows/pr-build.yml
index c3c640a..377a0e4 100644
--- a/.github/workflows/pr-build-java-11.yml
+++ b/.github/workflows/pr-build.yml
@@ -14,20 +14,23 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-name: Build PR on Java 11
+name: Build PR
 
-on: 
+on:
   pull_request:
-    branches: 
+    branches:
       - master
 jobs:
   build:
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        java: [ '1.8', '11' ]
     steps:
     - uses: actions/checkout@v1
-    - name: Set up JDK 11
+    - name: Set up JDK ${{ matrix.java }}
       uses: actions/setup-java@v1
       with:
-        java-version: 11
+        java-version: ${{ matrix.java }}
     - name: mvn install
       run: ./mvnw -V -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn clean install