You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by wu...@apache.org on 2022/05/19 08:35:07 UTC
[shardingsphere-elasticjob] branch master updated: Merge similar GitHub Actions workflow files #2083 (#2087)
This is an automated email from the ASF dual-hosted git repository.
wuweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git
The following commit(s) were added to refs/heads/master by this push:
new 9ddd70873 Merge similar GitHub Actions workflow files #2083 (#2087)
9ddd70873 is described below
commit 9ddd708730bbb552bcc53280ebfcca29c910c053
Author: Mingyuan Wu <my...@outlook.com>
AuthorDate: Thu May 19 16:34:57 2022 +0800
Merge similar GitHub Actions workflow files #2083 (#2087)
---
.github/workflows/maven-macos-jdk-11.yml | 43 ----------------------
.github/workflows/maven-macos.yml | 43 ----------------------
.github/workflows/maven-windows.yml | 41 ---------------------
.../{maven-windows-jdk-11.yml => maven.yml} | 30 +++++++++++----
4 files changed, 22 insertions(+), 135 deletions(-)
diff --git a/.github/workflows/maven-macos-jdk-11.yml b/.github/workflows/maven-macos-jdk-11.yml
deleted file mode 100644
index 219af3ea7..000000000
--- a/.github/workflows/maven-macos-jdk-11.yml
+++ /dev/null
@@ -1,43 +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.
-#
-
-# 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: Java CI with Maven on macOS (JDK11)
-
-on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
-
-jobs:
- build:
-
- runs-on: macos-latest
-
- steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 11
- uses: actions/setup-java@v1
- with:
- java-version: 11
- - name: Build with Maven
- run: |
- mvn --batch-mode --no-transfer-progress clean install -Dmaven.javadoc.skip=true
- bash <(curl -s https://codecov.io/bash)
diff --git a/.github/workflows/maven-macos.yml b/.github/workflows/maven-macos.yml
deleted file mode 100644
index 46288e0e4..000000000
--- a/.github/workflows/maven-macos.yml
+++ /dev/null
@@ -1,43 +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.
-#
-
-# 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: Java CI with Maven on macOS
-
-on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
-
-jobs:
- build:
-
- runs-on: macos-latest
-
- steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 1.8
- uses: actions/setup-java@v1
- with:
- java-version: 1.8
- - name: Build with Maven
- run: |
- mvn --batch-mode --no-transfer-progress clean install cobertura:cobertura -Dmaven.javadoc.skip=true
- bash <(curl -s https://codecov.io/bash)
diff --git a/.github/workflows/maven-windows.yml b/.github/workflows/maven-windows.yml
deleted file mode 100644
index 0a9d41517..000000000
--- a/.github/workflows/maven-windows.yml
+++ /dev/null
@@ -1,41 +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.
-#
-
-# This workflow will build a Java project with Maven in Windows environment
-# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-
-name: Java CI with Maven on Windows
-on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
-jobs:
- build:
- runs-on: windows-latest
- steps:
- - name: Configure Git
- run: |
- git config --global core.longpaths true
- - uses: actions/checkout@v2
- - name: Set up JDK 1.8
- uses: actions/setup-java@v1
- with:
- java-version: 1.8
- - name: Build with Maven
- run: |
- mvn --batch-mode --no-transfer-progress clean install cobertura:cobertura -D"maven.javadoc.skip=true"
diff --git a/.github/workflows/maven-windows-jdk-11.yml b/.github/workflows/maven.yml
similarity index 62%
rename from .github/workflows/maven-windows-jdk-11.yml
rename to .github/workflows/maven.yml
index 2092ef1a6..fcf9d69b2 100644
--- a/.github/workflows/maven-windows-jdk-11.yml
+++ b/.github/workflows/maven.yml
@@ -15,27 +15,41 @@
# limitations under the License.
#
-# This workflow will build a Java project with Maven in Windows environment
+# 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: Java CI with Maven on Windows (JDK11)
+name: Java CI with Maven
+
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
+
jobs:
build:
- runs-on: windows-latest
+ strategy:
+ matrix:
+ java: [ 8, 11, 17 ]
+ os: [ 'windows-latest', 'macos-latest', 'ubuntu-latest' ]
+
+ runs-on: ${{ matrix.os }}
+
steps:
- name: Configure Git
+ if: matrix.os == 'windows-latest'
run: |
git config --global core.longpaths true
- - uses: actions/checkout@v2
- - name: Set up JDK 11
- uses: actions/setup-java@v1
+ - uses: actions/checkout@v3
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v3
with:
- java-version: 11
+ distribution: 'temurin'
+ java-version: ${{ matrix.java }}
- name: Build with Maven
run: |
- mvn --batch-mode --no-transfer-progress clean install -D"maven.javadoc.skip=true"
+ ./mvnw --batch-mode --no-transfer-progress '-Dmaven.javadoc.skip=true' clean install
+ - name: Upload codecov report
+ if: matrix.os != 'windows-latest'
+ run: |
+ bash <(curl -s https://codecov.io/bash)
\ No newline at end of file