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/05/09 16:45:45 UTC
[shardingsphere] branch master updated: Add : add maven command back to soanrcloud (#25541)
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 c2ecad968b5 Add : add maven command back to soanrcloud (#25541)
c2ecad968b5 is described below
commit c2ecad968b576bb95fe03bc0e603be121b364f58
Author: 孙念君 Nianjun Sun <su...@apache.org>
AuthorDate: Wed May 10 00:45:37 2023 +0800
Add : add maven command back to soanrcloud (#25541)
Co-authored-by: shardingsphere <de...@shardingsphere.apache.org>
---
.github/workflows/check-sonarcloud.yml | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/check-sonarcloud.yml b/.github/workflows/check-sonarcloud.yml
index d81fadde7cb..3b872824817 100644
--- a/.github/workflows/check-sonarcloud.yml
+++ b/.github/workflows/check-sonarcloud.yml
@@ -49,10 +49,19 @@ jobs:
distribution: 'temurin'
java-version: 11
- uses: SonarSource/SonarCloud-github-action@master
+ - 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: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
- with:
- args: >
- -Dsonar.organization=apache
- -Dsonar.projectKey=apache_shardingsphere
+ 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