From 387b39f88c556b046d128162b817c3bb6e7a1b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BF=B5=E5=90=9B=20Nianjun=20Sun?= Date: Mon, 26 Aug 2024 19:31:11 +0800 Subject: [PATCH] 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 1f6db590d48b9..d765e5b081611 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: