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 2023/04/17 14:31:19 UTC
[shardingsphere] branch master updated: Refactor : refactor sonarcloud workflow (#25202)
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 6d1b794d4bc Refactor : refactor sonarcloud workflow (#25202)
6d1b794d4bc is described below
commit 6d1b794d4bcd350e3767d44d844331fb3d15e53c
Author: 孙念君 Nianjun Sun <su...@apache.org>
AuthorDate: Mon Apr 17 22:31:08 2023 +0800
Refactor : refactor sonarcloud workflow (#25202)
---
.github/workflows/{check.yml => check-checkstyle.yml} | 6 +++---
.github/workflows/check-sonarcloud.yml | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/check.yml b/.github/workflows/check-checkstyle.yml
similarity index 94%
rename from .github/workflows/check.yml
rename to .github/workflows/check-checkstyle.yml
index d4f929b1a41..93f7c77110e 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check-checkstyle.yml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-name: Check
+name: Check - CheckStyle and License
on:
push:
@@ -24,7 +24,7 @@ on:
- '**/src/main/**'
- '**/src/test/**'
- 'src/resources/**'
- - '.github/workflows/checkstyle-and-license-check.yml'
+ - '.github/workflows/check-checkstyle.yml'
- 'examples/shardingsphere-example-generator/**'
- 'test/e2e/agent/plugins/**'
- '!examples/**'
@@ -35,7 +35,7 @@ on:
- '**/src/main/**'
- '**/src/test/**'
- 'src/resources/**'
- - '.github/workflows/checkstyle-and-license-check.yml'
+ - '.github/workflows/check-checkstyle.yml'
- 'examples/shardingsphere-example-generator/**'
- 'test/e2e/agent/plugins/**'
- '!examples/**'
diff --git a/.github/workflows/check-sonarcloud.yml b/.github/workflows/check-sonarcloud.yml
index c0975aa8ed3..961b4463e37 100644
--- a/.github/workflows/check-sonarcloud.yml
+++ b/.github/workflows/check-sonarcloud.yml
@@ -18,7 +18,7 @@
name: Check - SonarCloud
on:
schedule:
- - cron: '0 */4 * * *'
+ - cron: '0 17 */1 * *' # once a day. UTC time
workflow_dispatch:
jobs:
@@ -48,6 +48,7 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
env:
+ MAVEN_OPTS: "-XX:+UseG1GC -XX:InitialHeapSize=2g -XX:MaxHeapSize=6g -XX:+UseStringDeduplication"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
- run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_shardingsphere
+ run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_shardingsphere -Dmaven.javadoc.skip=true -B -Drat.skip=true -Djacoco.skip=true -Dmaven.test.skip=true