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

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

commit d5f95e1a4c3ed89076e2d1e46366e5cc7e11d6a4
Author: HTHou <[email protected]>
AuthorDate: Mon Sep 4 11:42:34 2023 +0800

    test codecov
---
 .github/workflows/sonar-coveralls.yml | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/sonar-coveralls.yml 
b/.github/workflows/sonar-coveralls.yml
index bb51bb3c49e..43bb5faf33d 100644
--- a/.github/workflows/sonar-coveralls.yml
+++ b/.github/workflows/sonar-coveralls.yml
@@ -8,6 +8,7 @@ on:
     branches:
       - master
       - "rel/*"
+      - codecov
     paths-ignore:
       - "docs/**"
       - 'site/**'
@@ -45,16 +46,20 @@ jobs:
           restore-keys: ${{ runner.os }}-m2-
       - name: Test
         run: mvn -B -P with-code-coverage clean compile test -pl 
distribution,iotdb-client/cli,iotdb-client/session,iotdb-client/jdbc -am 
-Dtest.port.closed=true
-      - name: Coveralls
-        # TODO: "post-integration-test" doesn't evaluate the outcome of the IT 
phase, this is done in "validate"
-        run: |
-          mvn -B -P with-code-coverage post-integration-test -pl code-coverage
-          mvn -B coveralls:report \
-          -DserviceName=travis_ci \
-          -Dbranch=$BRANCH_NAME \
-          -DpullRequest=$PR_NUMBER \
-          -DrepoToken=${{ secrets.COVERALL_TOKEN }} \
-          -Pwith-code-coverage
+      - name: Upload coverage reports to Codecov
+        uses: codecov/codecov-action@v3
+        with:
+          token: ${{ secrets.CODECOV_TOKEN }}
+#      - name: Coveralls
+#        # TODO: "post-integration-test" doesn't evaluate the outcome of the 
IT phase, this is done in "validate"
+#        run: |
+#          mvn -B -P with-code-coverage post-integration-test -pl code-coverage
+#          mvn -B coveralls:report \
+#          -DserviceName=travis_ci \
+#          -Dbranch=$BRANCH_NAME \
+#          -DpullRequest=$PR_NUMBER \
+#          -DrepoToken=${{ secrets.COVERALL_TOKEN }} \
+#          -Pwith-code-coverage
 
   sonar:
     runs-on: ubuntu-latest

Reply via email to