You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/10/29 11:21:15 UTC

[shardingsphere-elasticjob] branch master updated: Add GitHub workflow runs on Windows environment (#1675)

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

zhangliang 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 065856b  Add GitHub workflow runs on Windows environment (#1675)
065856b is described below

commit 065856b9a8bf122452d442c35274c2596beeece9
Author: 吴伟杰 <ro...@me.com>
AuthorDate: Thu Oct 29 19:21:03 2020 +0800

    Add GitHub workflow runs on Windows environment (#1675)
    
    * Add GitHub workflow runs on Windows environment
    
    * Add git configuration
    
    * Remove codecov from Windows CI
    
    * Correct syntax for PowerShell
---
 .github/workflows/{maven.yml => maven-macos.yml}   |  4 ++--
 .github/workflows/{maven.yml => maven-windows.yml} | 16 +++++++---------
 README.md                                          |  2 +-
 README_ZH.md                                       |  2 +-
 4 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-macos.yml
similarity index 94%
copy from .github/workflows/maven.yml
copy to .github/workflows/maven-macos.yml
index c5e30f2..46288e0 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven-macos.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
+name: Java CI with Maven on macOS
 
 on:
   push:
@@ -40,4 +40,4 @@ jobs:
       - 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)
\ No newline at end of file
+          bash <(curl -s https://codecov.io/bash)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-windows.yml
similarity index 81%
rename from .github/workflows/maven.yml
rename to .github/workflows/maven-windows.yml
index c5e30f2..0a9d415 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven-windows.yml
@@ -15,23 +15,22 @@
 # limitations under the License.
 #
 
-# This workflow will build a Java project with Maven
+# 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
-
+name: Java CI with Maven on Windows
 on:
   push:
     branches: [ master ]
   pull_request:
     branches: [ master ]
-
 jobs:
   build:
-
-    runs-on: macos-latest
-
+    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
@@ -39,5 +38,4 @@ jobs:
           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)
\ No newline at end of file
+          mvn --batch-mode --no-transfer-progress clean install cobertura:cobertura -D"maven.javadoc.skip=true"
diff --git a/README.md b/README.md
index d85c2df..8e6fb0e 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ Welcome communicate with community via [mail list](mailto:dev@shardingsphere.apa
 
 [![Maven Status](https://maven-badges.herokuapp.com/maven-central/com.dangdang/elastic-job/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.dangdang/elastic-job)
 [![Build Status](https://secure.travis-ci.org/apache/shardingsphere-elasticjob.png?branch=master)](https://travis-ci.org/apache/shardingsphere-elasticjob)
-[![GitHub Workflow](https://img.shields.io/github/workflow/status/apache/shardingsphere-elasticjob/Java%20CI%20with%20Maven/master)](https://github.com/apache/shardingsphere-elasticjob/actions?query=workflow%3A%22Java+CI+with+Maven%22)
+[![GitHub Workflow](https://img.shields.io/github/workflow/status/apache/shardingsphere-elasticjob/Java%20CI%20with%20Maven%20on%20macOS/master)](https://github.com/apache/shardingsphere-elasticjob/actions?query=workflow%3A%22Java+CI+with+Maven+on+macOS%22)
 [![codecov](https://codecov.io/gh/apache/shardingsphere-elasticjob/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/shardingsphere-elasticjob)
 
 ## Introduction
diff --git a/README_ZH.md b/README_ZH.md
index cdfd215..66b6a6b 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -17,7 +17,7 @@ ElasticJob 已于 2020 年 5 月 28 日成为 [Apache ShardingSphere](https://sh
 
 [![Maven Status](https://maven-badges.herokuapp.com/maven-central/com.dangdang/elastic-job/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.dangdang/elastic-job)
 [![Build Status](https://secure.travis-ci.org/apache/shardingsphere-elasticjob.png?branch=master)](https://travis-ci.org/apache/shardingsphere-elasticjob)
-[![GitHub Workflow](https://img.shields.io/github/workflow/status/apache/shardingsphere-elasticjob/Java%20CI%20with%20Maven/master)](https://github.com/apache/shardingsphere-elasticjob/actions?query=workflow%3A%22Java+CI+with+Maven%22)
+[![GitHub Workflow](https://img.shields.io/github/workflow/status/apache/shardingsphere-elasticjob/Java%20CI%20with%20Maven%20on%20macOS/master)](https://github.com/apache/shardingsphere-elasticjob/actions?query=workflow%3A%22Java+CI+with+Maven+on+macOS%22)
 [![codecov](https://codecov.io/gh/apache/shardingsphere-elasticjob/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/shardingsphere-elasticjob)
 
 ## 简介