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.git


The following commit(s) were added to refs/heads/master by this push:
     new 317d2782f0e Refactor : merge sonarcloud to nightly check (#25498)
317d2782f0e is described below

commit 317d2782f0ea562a3e61540ef54f4c14676b5518
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Sun May 7 01:23:39 2023 +0800

    Refactor : merge sonarcloud to nightly check (#25498)
    
    * Refactor : merge sonarcloud to nightly check
    
    * Refactor : rename the nightly check
    
    * Refactor : rename the nightly check
    
    ---------
    
    Co-authored-by: shardingsphere <[email protected]>
---
 .github/workflows/nightly-check-checkstyle.yml     | 63 ----------------------
 ...htly-check-sonarcloud.yml => nightly-check.yml} | 27 +++++++---
 2 files changed, 20 insertions(+), 70 deletions(-)

diff --git a/.github/workflows/nightly-check-checkstyle.yml 
b/.github/workflows/nightly-check-checkstyle.yml
deleted file mode 100644
index 0705a14b8c9..00000000000
--- a/.github/workflows/nightly-check-checkstyle.yml
+++ /dev/null
@@ -1,63 +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.
-#
-
-name: Nightly Check - CheckStyle
-
-on:
-  schedule:
-    - cron: '0 18 */1 * *'  # once a day. UTC time
-  workflow_dispatch:
-
-env:
-  MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3 -Dcheckstyle.skip=true
-  REPOSITORY_NAME: shardingsphere
-
-jobs:
-  check-checkstyle:
-    name: Check - CheckStyle
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/cache@v3
-        with:
-          path: ~/.m2/repository
-          key: ${{ env.REPOSITORY_NAME }}-maven-third-party-${{ 
hashFiles('**/pom.xml') }}
-          restore-keys: |
-            ${{ env.REPOSITORY_NAME }}-maven-third-party-
-      - name: Run CheckStyle
-        run: ./mvnw checkstyle:check -T1C
-  
-  check-spotbugs:
-    name: Check - SpotBugs
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: actions/cache@v3
-        with:
-          path: ~/.m2/repository
-          key: ${{ env.REPOSITORY_NAME }}-maven-third-party-${{ 
hashFiles('**/pom.xml') }}
-          restore-keys: |
-            ${{ env.REPOSITORY_NAME }}-maven-third-party-
-      - name: Run SpotBugs
-        run: ./mvnw clean install spotbugs:check -T1C
-  
-  check-license:
-    name: Check - License
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v3
-      - uses: apache/[email protected]
diff --git a/.github/workflows/nightly-check-sonarcloud.yml 
b/.github/workflows/nightly-check.yml
similarity index 74%
rename from .github/workflows/nightly-check-sonarcloud.yml
rename to .github/workflows/nightly-check.yml
index ab568d3bf1c..d4bf2e2564a 100644
--- a/.github/workflows/nightly-check-sonarcloud.yml
+++ b/.github/workflows/nightly-check.yml
@@ -15,24 +15,37 @@
 # limitations under the License.
 #
 
-name: Nightly Check - SonarCloud
+name: Nightly - Check
 
 on:
   schedule:
     - cron: '0 20 */1 * *'  # once a day. UTC time
   workflow_dispatch:
 
-concurrency:
-  group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
-  cancel-in-progress: true
-
 env:
+  MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3 -Dcheckstyle.skip=true
   CACHE_PREFIX: shardingsphere
 
 jobs:
-  build:
+  check-spotbugs:
+    if: github.repository == 'apache/shardingsphere'
+    name: Check - SpotBugs
+    runs-on: ubuntu-latest
+    timeout-minutes: 60
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/cache@v3
+        with:
+          path: ~/.m2/repository
+          key: ${{ env.CACHE_PREFIX }}-maven-third-party-${{ 
hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ env.CACHE_PREFIX }}-maven-third-party-
+      - name: Run SpotBugs
+        run: ./mvnw clean install spotbugs:check -T1C
+  
+  check-and-report-sonarcloud:
     if: github.repository == 'apache/shardingsphere'
-    name: Build and analyze
+    name: Check and report sonarcloud
     runs-on: ubuntu-latest
     timeout-minutes: 40
     steps:

Reply via email to