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 104d9b15327 Refactor sonar to nightly (#25606)
104d9b15327 is described below

commit 104d9b15327d0cf0d5d7f6bced234baa99de825a
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Fri May 12 15:48:18 2023 +0800

    Refactor sonar to nightly (#25606)
    
    * Refactor : make sonar nightly and renname the check workflow
    
    * Refactor : rename required check
    
    * Refactor : roll back the checkstyle job name
    
    ---------
    
    Co-authored-by: shardingsphere <[email protected]>
---
 .github/workflows/check-sonarcloud.yml             | 68 ----------------------
 .../{check-checkstyle.yml => required-check.yml}   |  2 +-
 2 files changed, 1 insertion(+), 69 deletions(-)

diff --git a/.github/workflows/check-sonarcloud.yml 
b/.github/workflows/check-sonarcloud.yml
deleted file mode 100644
index c05f322fbb3..00000000000
--- a/.github/workflows/check-sonarcloud.yml
+++ /dev/null
@@ -1,68 +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: Check - SonarCloud
-
-on:
-  pull_request:
-    branches: [ master ]
-    paths:
-      - '**/src/main/**'
-      - '**/src/test/**'
-      - 'src/resources/**'
-      - 'examples/shardingsphere-example-generator/**'
-      - '!examples/**'
-      - '!*.md'
-  workflow_dispatch:
-
-concurrency:
-  group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
-  cancel-in-progress: true
-
-env:
-  CACHE_PREFIX: shardingsphere
-
-jobs:
-  analyze-sonarcloud:
-    if: github.repository == 'apache/shardingsphere'
-    name: Analyze to SonarCloud
-    runs-on: ubuntu-latest
-    timeout-minutes: 40
-    steps:
-      - uses: actions/checkout@v3
-        with:
-          fetch-depth: 0
-      - uses: actions/setup-java@v3
-        with:
-          java-version: 11
-          distribution: 'temurin'
-      - uses: actions/cache@v3
-        with:
-          path: ~/.sonar/cache
-          key: ${{ runner.os }}-sonar
-          restore-keys: ${{ runner.os }}-sonar
-      - 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: Analyze
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
-        run: ./mvnw -B verify 
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar 
-Dsonar.projectKey=apache_shardingsphere -Dmaven.javadoc.skip=true 
-Drat.skip=true -Djacoco.skip=true -DskipTests
diff --git a/.github/workflows/check-checkstyle.yml 
b/.github/workflows/required-check.yml
similarity index 97%
rename from .github/workflows/check-checkstyle.yml
rename to .github/workflows/required-check.yml
index d78acf78b78..befc710389a 100644
--- a/.github/workflows/check-checkstyle.yml
+++ b/.github/workflows/required-check.yml
@@ -15,7 +15,7 @@
 # limitations under the License.
 #
 
-name: Check - CheckStyle and License
+name: Required - Check
 
 on:
   push:

Reply via email to