You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by xi...@apache.org on 2021/01/05 06:13:43 UTC
[shardingsphere] branch master updated: compose github action file
(#8890)
This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 3d2b51c compose github action file (#8890)
3d2b51c is described below
commit 3d2b51cf6f8ef4f859d5ac9482e9b1a05e9f8bd9
Author: Daming <zt...@foxmail.com>
AuthorDate: Tue Jan 5 14:13:24 2021 +0800
compose github action file (#8890)
* compose github action file
* update
---
.github/workflows/maven-on-macos.yml | 48 ---------------------
.github/workflows/maven-on-ubuntu.yml | 50 ----------------------
.../workflows/{maven-on-windows.yml => maven.yml} | 27 +++++++++++-
3 files changed, 25 insertions(+), 100 deletions(-)
diff --git a/.github/workflows/maven-on-macos.yml b/.github/workflows/maven-on-macos.yml
deleted file mode 100644
index 663beb0..0000000
--- a/.github/workflows/maven-on-macos.yml
+++ /dev/null
@@ -1,48 +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(MacOS)
-
-on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
-
-jobs:
- build:
- runs-on: macos-latest
- steps:
- - name: Cache Maven Repos
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-maven-
- - uses: actions/checkout@v2
- - name: Set up JDK 8
- uses: actions/setup-java@v1
- with:
- java-version: 8
- - name: Build with Maven
- run: ./mvnw -B clean cobertura:cobertura -Dmaven.javadoc.skip=true install
- - name: Build examples with Maven
- run: ./mvnw -B -f examples/pom.xml clean package -DskipTests
diff --git a/.github/workflows/maven-on-ubuntu.yml b/.github/workflows/maven-on-ubuntu.yml
deleted file mode 100644
index c2f4d1b..0000000
--- a/.github/workflows/maven-on-ubuntu.yml
+++ /dev/null
@@ -1,50 +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(Ubuntu)
-
-on:
- push:
- branches: [ master ]
- pull_request:
- branches: [ master ]
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Cache Maven Repos
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-maven-
- - uses: actions/checkout@v2
- - name: Set up JDK 8
- uses: actions/setup-java@v1
- with:
- java-version: 8
- - name: Build with Maven
- run: ./mvnw -B clean cobertura:cobertura -Dmaven.javadoc.skip=true install
- - name: Build examples with Maven
- run: ./mvnw -B -f examples/pom.xml clean package -DskipTests
- - name: Report Coverage
- run: bash <(curl -s https://codecov.io/bash)
diff --git a/.github/workflows/maven-on-windows.yml b/.github/workflows/maven.yml
similarity index 70%
rename from .github/workflows/maven-on-windows.yml
rename to .github/workflows/maven.yml
index 59c9c5a..249ea56 100644
--- a/.github/workflows/maven-on-windows.yml
+++ b/.github/workflows/maven.yml
@@ -18,7 +18,7 @@
# 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(Windows)
+name: Java CI with Maven
on:
push:
@@ -27,7 +27,7 @@ on:
branches: [ master ]
jobs:
- build:
+ windows:
runs-on: windows-latest
steps:
- name: Cache Maven Repos
@@ -48,3 +48,26 @@ jobs:
run: ./mvnw -B clean cobertura:cobertura -D"maven.javadoc.skip"=true install
- name: Build examples with Maven
run: ./mvnw -B -f examples/pom.xml clean package -DskipTests
+
+ unix:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ ubuntu-latest, macos-latest ]
+ steps:
+ - name: Cache Maven Repos
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+ - uses: actions/checkout@v2
+ - name: Set up JDK 8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 8
+ - name: Build with Maven
+ run: ./mvnw -B clean cobertura:cobertura -Dmaven.javadoc.skip=true install
+ - name: Build examples with Maven
+ run: ./mvnw -B -f examples/pom.xml clean package -DskipTests