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

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new a5543690bf9 Enable Coveralls check (#9997)
a5543690bf9 is described below

commit a5543690bf926551d38a8e5e80781121682bf573
Author: Haonan <[email protected]>
AuthorDate: Fri Jun 9 19:18:49 2023 +0800

    Enable Coveralls check (#9997)
---
 .github/workflows/sonar-coveralls.yml | 39 +++++++++++++++++++++--------------
 pom.xml                               | 21 +++++++++----------
 2 files changed, 34 insertions(+), 26 deletions(-)

diff --git a/.github/workflows/sonar-coveralls.yml 
b/.github/workflows/sonar-coveralls.yml
index f79f3015b59..f649f789712 100644
--- a/.github/workflows/sonar-coveralls.yml
+++ b/.github/workflows/sonar-coveralls.yml
@@ -32,7 +32,7 @@ env:
   PR_NUMBER: ${{ github.event.number }}
 
 jobs:
-  ubuntu:
+  coveralls:
     runs-on: ubuntu-latest
     if: github.event_name == 'pull_request' && 
github.event.pull_request.head.repo.full_name == 'apache/iotdb' || 
github.event_name == 'push'
 
@@ -44,21 +44,30 @@ jobs:
           path: ~/.m2
           key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
           restore-keys: ${{ runner.os }}-m2-
-#      - name: IT/UT Test
-#        # we do not compile client-cpp for saving time, it is tested in 
client.yml
-#        run: mvn -B clean compile post-integration-test 
-Dcluster.test.skip=true -Dtest.port.closed=true -Pcode-coverage -P 
'!testcontainer,!influxdb-protocol'
-#      - name: Code Coverage (Coveralls)
-#        if: ${{ success() }}
-#        run: |
-#          mvn -B post-integration-test -Pcode-coverage -pl code-coverage
-#          mvn -B coveralls:report \
-#          -DserviceName=travis_ci \
-#          -Dbranch=$BRANCH_NAME \
-#          -DpullRequest=$PR_NUMBER \
-#          -DrepoToken=${{ secrets.COVERALL_TOKEN }} \
-#          -Pcode-coverage -P '!testcontainer'
+      - name: Test
+        run: mvn -B clean compile test -pl distribution -am 
-Dtest.port.closed=true -Pcode-coverage -P '!testcontainer'
+      - name: Coveralls
+        run: |
+          mvn -B post-integration-test -Pcode-coverage -pl code-coverage
+          mvn -B coveralls:report \
+          -DserviceName=travis_ci \
+          -Dbranch=$BRANCH_NAME \
+          -DpullRequest=$PR_NUMBER \
+          -DrepoToken=${{ secrets.COVERALL_TOKEN }} \
+          -Pcode-coverage -P '!testcontainer'
+
+  sonar:
+    runs-on: ubuntu-latest
+    if: github.event_name == 'pull_request' && 
github.event.pull_request.head.repo.full_name == 'apache/iotdb' || 
github.event_name == 'push'
+    steps:
+      - uses: actions/checkout@v3
+      - name: Cache Maven packages
+        uses: actions/cache@v3
+        with:
+          path: ~/.m2
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2-
       - name: SonarCloud Report
-        if: ${{ success() }}
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
diff --git a/pom.xml b/pom.xml
index aed674463e4..d7da67d1b7b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -831,17 +831,16 @@
                     <sourceDirectories>
                         <!-- put all source folders not in src/main/java 
here-->
                         
<sourceDirectory>antlr/target/generated-sources/antlr4</sourceDirectory>
-                        
<sourceDirectory>thrift/target/generated-sources/thrift</sourceDirectory>
-                        
<sourceDirectory>thrift-commons/target/generated-sources/thrift</sourceDirectory>
-                        
<sourceDirectory>thrift-confignode/target/generated-sources/thrift</sourceDirectory>
-                        
<sourceDirectory>thrift-iot-consensus/target/generated-sources/thrift</sourceDirectory>
-                        
<sourceDirectory>thrift-sync/target/generated-sources/thrift</sourceDirectory>
-                        
<sourceDirectory>thrift-cluster/target/generated-sources/thrift</sourceDirectory>
-                        
<sourceDirectory>thrift-influxdb/target/generated-sources/thrift</sourceDirectory>
-                        
<sourceDirectory>openapi/target/generated-sources/java/src/gen/java</sourceDirectory>
-                        
<sourceDirectory>openapi/target/generated-sources/java/src/main/java</sourceDirectory>
-                        
<sourceDirectory>spark-iotdb-connector/src/main/scala</sourceDirectory>
-                        
<sourceDirectory>spark-tsfile/src/main/scala</sourceDirectory>
+                        
<sourceDirectory>iotdb-protocol/thrift/target/generated-sources/thrift</sourceDirectory>
+                        
<sourceDirectory>iotdb-protocol/thrift-commons/target/generated-sources/thrift</sourceDirectory>
+                        
<sourceDirectory>iotdb-protocol/thrift-confignode/target/generated-sources/thrift</sourceDirectory>
+                        
<sourceDirectory>iotdb-protocol/thrift-iot-consensus/target/generated-sources/thrift</sourceDirectory>
+                        
<sourceDirectory>iotdb-protocol/thrift-influxdb/target/generated-sources/thrift</sourceDirectory>
+                        
<sourceDirectory>iotdb-protocol/openapi/target/generated-sources/java/src/gen/java</sourceDirectory>
+                        
<sourceDirectory>iotdb-protocol/openapi/target/generated-sources/java/src/main/java</sourceDirectory>
+                        
<sourceDirectory>server/target/generated-sources/freemarker/</sourceDirectory>
+                        
<sourceDirectory>iotdb-connector/spark-iotdb-connector/src/main/scala</sourceDirectory>
+                        
<sourceDirectory>iotdb-connector/spark-tsfile/src/main/scala</sourceDirectory>
                     </sourceDirectories>
                 </configuration>
                 <!-- JDK11 removes the following libs. We have to add them-->

Reply via email to