You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2022/01/19 01:49:58 UTC

[shardingsphere] branch master updated: [CI] Recover macos CI to only Java8; Add check-license as CI dependent job; Add timeout-minutes for CI (#14870)

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

panjuan 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 225aa62  [CI] Recover macos CI to only Java8; Add check-license as CI dependent job; Add timeout-minutes for CI (#14870)
225aa62 is described below

commit 225aa6206c44f12b5c0593b0274943794f762282
Author: Hongsheng Zhong <sa...@126.com>
AuthorDate: Wed Jan 19 09:49:11 2022 +0800

    [CI] Recover macos CI to only Java8; Add check-license as CI dependent job; Add timeout-minutes for CI (#14870)
    
    * Recover macos continuous integration to Java8
    
    * Add check-license as continuous integration dependent job
    
    * Add timeout-minutes for continuous integration
---
 .github/workflows/ci.yml | 38 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2676b49..eb40f86 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -44,7 +44,9 @@ jobs:
         uses: apache/skywalking-eyes@main
         
   windows:
+    needs: check-license
     runs-on: windows-latest
+    timeout-minutes: 60
     steps:
       - name: Cache Maven Repos
         uses: actions/cache@v2
@@ -74,11 +76,13 @@ jobs:
   
   unix:
     name: CI Tests - JDK ${{ matrix.java.version }} - on ${{ matrix.os }}
+    needs: check-license
     runs-on: ${{ matrix.os }}
+    timeout-minutes: 60
     strategy:
       fail-fast: false
       matrix:
-        os: [ ubuntu-latest, macos-latest ]
+        os: [ ubuntu-latest ]
         java:
           - {
             version: 8,
@@ -109,3 +113,35 @@ jobs:
         run: echo y | ./mvnw -B clean install ${{ matrix.java.maven_args }}
       - name: Build examples with Maven
         run: echo y | ./mvnw -B -f examples/pom.xml clean package -DskipTests
+
+  macos:
+    name: CI Tests - JDK ${{ matrix.java.version }} - on ${{ matrix.os }}
+    needs: check-license
+    runs-on: ${{ matrix.os }}
+    timeout-minutes: 60
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [ macos-latest ]
+        java:
+          - {
+            version: 8,
+            maven_args: "cobertura:cobertura -Dmaven.javadoc.skip=true"
+          }
+    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 ${{ matrix.java.version }}
+        uses: actions/setup-java@v1
+        with:
+          java-version: ${{ matrix.java.version }}
+      - name: Build with Maven
+        run: echo y | ./mvnw -B clean install ${{ matrix.java.maven_args }}
+      - name: Build examples with Maven
+        run: echo y | ./mvnw -B -f examples/pom.xml clean package -DskipTests