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 2023/04/27 05:31:38 UTC

[shardingsphere] branch master updated: Refactor : refactor the sonar cache and names (#25348)

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

zhaojinchao 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 a1cb0ba014c Refactor : refactor the sonar cache and names (#25348)
a1cb0ba014c is described below

commit a1cb0ba014cac29ec2b9ce16c4d55d25e1e25401
Author: 孙念君 Nianjun Sun <su...@apache.org>
AuthorDate: Thu Apr 27 13:31:31 2023 +0800

    Refactor : refactor the sonar cache and names (#25348)
    
    Co-authored-by: shardingsphere <de...@shardingsphere.apache.org>
---
 .../{nightly-check.yml => nightly-check-checkstyle.yml}       |  2 +-
 .../{check-sonarcloud.yml => nightly-check-sonarcloud.yml}    | 11 +++++------
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/nightly-check.yml b/.github/workflows/nightly-check-checkstyle.yml
similarity index 98%
rename from .github/workflows/nightly-check.yml
rename to .github/workflows/nightly-check-checkstyle.yml
index e8d3f64a47d..0705a14b8c9 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check-checkstyle.yml
@@ -15,7 +15,7 @@
 # limitations under the License.
 #
 
-name: Nightly - Check
+name: Nightly Check - CheckStyle
 
 on:
   schedule:
diff --git a/.github/workflows/check-sonarcloud.yml b/.github/workflows/nightly-check-sonarcloud.yml
similarity index 87%
rename from .github/workflows/check-sonarcloud.yml
rename to .github/workflows/nightly-check-sonarcloud.yml
index ebedda71327..91523b130af 100644
--- a/.github/workflows/check-sonarcloud.yml
+++ b/.github/workflows/nightly-check-sonarcloud.yml
@@ -15,7 +15,7 @@
 # limitations under the License.
 #
 
-name: Check - SonarCloud
+name: Nightly Check - SonarCloud
 on:
   schedule:
     - cron: '0 17 */1 * *'  # once a day. UTC time
@@ -47,11 +47,10 @@ jobs:
       - name: Cache Maven packages
         uses: actions/cache@v3
         with:
-          path: ~/.m2
-          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
-          restore-keys: ${{ runner.os }}-m2
-      - name: Build dependencies
-        run: ./mvnw -B clean install -Dmaven.javadoc.skip=true -Drat.skip=true -Djacoco.skip=true -Dspotless.apply.skip=true
+          path: ~/.m2/repository
+          key: ${{ env.REPOSITORY_NAME }}-maven-third-party-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ env.REPOSITORY_NAME }}-maven-third-party-
       - name: Build and analyze
         env:
           MAVEN_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g -XX:+UseStringDeduplication"