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 387b39f88c5 Refactor : update the jacoco report to sonarcloud (#32685)
387b39f88c5 is described below
commit 387b39f88c556b046d128162b817c3bb6e7a1b69
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Mon Aug 26 19:31:11 2024 +0800
Refactor : update the jacoco report to sonarcloud (#32685)
---
.github/workflows/nightly-check.yml | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/nightly-check.yml
b/.github/workflows/nightly-check.yml
index 1f6db590d48..d765e5b0816 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -236,19 +236,24 @@ jobs:
shardingsphere-maven-third-party-e2e-cache-
shardingsphere-maven-third-party-
- name: Install Project
- run: ./mvnw clean install -T1C
+ run: ./mvnw clean install -DskipTests -T1C
- name: Set up JDK 8 for Jacoco
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
- cache: 'maven'
- name: Build with maven and execute jacoco aggregation script
run: |
./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 }}
- ./mvnw -Dsonar.coverage.jacoco.xmlReportPaths=${{ github.workspace
}}/target/mergeReport/jacoco.xml sonar:sonar -Pcoverage
+ - 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: