From 3ed9351f8b1455d4f6b2a11743cabcc75dfd44e0 Mon Sep 17 00:00:00 2001 From: jervyshi Date: Tue, 7 Jun 2022 17:09:11 +0800 Subject: [PATCH 1/4] add jdk11 package support --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 504fa34c..e0ccda00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ dist: trusty jdk: - oraclejdk8 - openjdk7 + - openjdk11 dist: trusty From 779ea5d3357055e63ca389fc8cf296e4e6684fd9 Mon Sep 17 00:00:00 2001 From: jervyshi Date: Tue, 7 Jun 2022 17:20:08 +0800 Subject: [PATCH 2/4] setup maven github action --- .github/workflows/maven.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..f1653094 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,32 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: build +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + java-version: [8, 11, 17] + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK ${{ matrix.java-version }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java-version }} + - name: Build with Maven + run: ./mvnw clean install -Pci-install -B -U -e && bash ./.middleware-common/check_format.sh + - name: Test with Maven + run: ./mvnw package -Pci-test + - name: Codecov + uses: codecov/codecov-action@v1 + From 6ccede9b6dc1b98464aca3cd7cfdd7424046f8aa Mon Sep 17 00:00:00 2001 From: jervyshi Date: Tue, 7 Jun 2022 17:26:51 +0800 Subject: [PATCH 3/4] change github action trigger conditions --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index f1653094..910ff5ca 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -6,7 +6,7 @@ on: push: branches: [ master ] pull_request: - branches: [ master ] + types: [opened, synchronize, reopened] jobs: build: From d7c216a3d0120aef8dcbd6a2782bbb69186fc28e Mon Sep 17 00:00:00 2001 From: jervyshi Date: Tue, 7 Jun 2022 20:27:25 +0800 Subject: [PATCH 4/4] Narrow down support to jdk 8 and 11 --- .github/workflows/maven.yml | 19 ++++++++++++++++++- .travis.yml | 1 - 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 910ff5ca..511e6874 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,3 +1,20 @@ +# +# 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. +# + # This workflow will build a Java project with Maven # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven @@ -15,7 +32,7 @@ jobs: strategy: matrix: - java-version: [8, 11, 17] + java-version: [8, 11] steps: - uses: actions/checkout@v2 diff --git a/.travis.yml b/.travis.yml index e0ccda00..504fa34c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,6 @@ dist: trusty jdk: - oraclejdk8 - openjdk7 - - openjdk11 dist: trusty