diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 11b306ca5..bd1219b58 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -33,3 +33,7 @@ jobs: fi done done + - name: SonarCloud + run: mvn sonar:sonar -Pcoverage -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_incubator-seata-samples + + diff --git a/at-sample/dubbo-samples-seata/dubbo-samples-seata-stock/pom.xml b/at-sample/dubbo-samples-seata/dubbo-samples-seata-stock/pom.xml index a8a30471a..17d4a8204 100644 --- a/at-sample/dubbo-samples-seata/dubbo-samples-seata-stock/pom.xml +++ b/at-sample/dubbo-samples-seata/dubbo-samples-seata-stock/pom.xml @@ -58,13 +58,30 @@ seata-spring-boot-starter + + + sonar + + true + + + + coverage + + true + + + target/site/jacoco/jacoco.xml + + + org.apache.maven.plugins maven-compiler-plugin - 3.8.1 + 3.13.0 1.8 1.8 @@ -87,6 +104,36 @@ + + + org.jacoco + jacoco-maven-plugin + 0.8.12 + + + + prepare-agent + + + + report + test + + report + + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.9.1.2184 + + + org.codehaus.mojo + sonar-maven-plugin + 3.0.2 +