From 319bba494f70f62948aeb4bf179c91480292cf3d Mon Sep 17 00:00:00 2001 From: SbloodyS <460888207@qq.com> Date: Fri, 20 Sep 2024 11:29:35 +0800 Subject: [PATCH] improvement 16096 --- .github/workflows/unit-test.yml | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index d81c2d77e0a7..273b934f5c47 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -90,24 +90,20 @@ jobs: # Sonar check need to run after jacoco report generated. - name: Run SonarCloud Analysis run: > - if [[ ${{ matrix.java }} == '11' ]]; then - ./mvnw --batch-mode verify sonar:sonar - -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml - -Dmaven.test.skip=true - -Dspotless.skip=true - -Dsonar.host.url=https://sonarcloud.io - -Dsonar.organization=apache - -Dsonar.core.codeCoveragePlugin=jacoco - -Dsonar.projectKey=apache-dolphinscheduler - -Dsonar.login=e4058004bc6be89decf558ac819aa1ecbee57682 - -Dsonar.exclusions=dolphinscheduler-ui/src/**/i18n/locale/*.js,dolphinscheduler-microbench/src/**/* - -Dhttp.keepAlive=false - -Dmaven.wagon.http.pool=false - -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 - -DskipUT=true - else - echo "Skip Run SonarCloud Analysis." - fi + ./mvnw --batch-mode verify sonar:sonar + -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml + -Dmaven.test.skip=true + -Dspotless.skip=true + -Dsonar.host.url=https://sonarcloud.io + -Dsonar.organization=apache + -Dsonar.core.codeCoveragePlugin=jacoco + -Dsonar.projectKey=apache-dolphinscheduler + -Dsonar.login=e4058004bc6be89decf558ac819aa1ecbee57682 + -Dsonar.exclusions=dolphinscheduler-ui/src/**/i18n/locale/*.js,dolphinscheduler-microbench/src/**/* + -Dhttp.keepAlive=false + -Dmaven.wagon.http.pool=false + -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 + -DskipUT=true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}