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

menghaoran 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 2c8519be43b Refactor : update the JDK version for sonar coverage 
(#32697)
2c8519be43b is described below

commit 2c8519be43bfab6facf83ccc4862d5826d368404
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Tue Aug 27 10:23:46 2024 +0800

    Refactor : update the JDK version for sonar coverage (#32697)
---
 .github/workflows/nightly-check.yml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/nightly-check.yml 
b/.github/workflows/nightly-check.yml
index d765e5b0816..f5bf12d30f7 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -247,15 +247,15 @@ jobs:
           ./mvnw --show-version --batch-mode --no-transfer-progress verify 
-Dmaven.test.failure.ignore=true -DfailIfNoTests=false 
-Dsurefire.failIfNoSpecifiedTests=false &&
           chmod +x 
./.github/workflows/resources/scripts/unit-test-coverage-merge/code-coverage-merge.sh
 &&
           
./.github/workflows/resources/scripts/unit-test-coverage-merge/code-coverage-merge.sh
 ${{ github.workspace }}
-      - name: Set up JDK 11 for sonar plugin
-        uses: actions/setup-java@v4
-        with:
-          distribution: temurin
-          java-version: 11
-      - name: Upload jacoco report to sonar
-        run: ./mvnw -Dsonar.coverage.jacoco.xmlReportPaths=${{ 
github.workspace }}/target/mergeReport/jacoco.xml sonar:sonar
       - name: Upload coverage reports to codecov
         uses: codecov/codecov-action@v4
         with:
           token: ${{ secrets.CODECOV_TOKEN }}
           files: ${{ github.workspace }}/target/mergeReport/jacoco.xml
+      - name: Set up JDK 17 for sonar plugin
+        uses: actions/setup-java@v4
+        with:
+          distribution: temurin
+          java-version: 17
+      - name: Upload jacoco report to sonar
+        run: ./mvnw -Dsonar.coverage.jacoco.xmlReportPaths=${{ 
github.workspace }}/target/mergeReport/jacoco.xml sonar:sonar

Reply via email to