You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/05/31 07:14:16 UTC

[iotdb] branch coveralls updated: finish coveralls

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

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


The following commit(s) were added to refs/heads/coveralls by this push:
     new 8b4d42face6 finish coveralls
8b4d42face6 is described below

commit 8b4d42face627cf1006c645e87f68488a6d8e535
Author: HTHou <hh...@outlook.com>
AuthorDate: Wed May 31 15:14:06 2023 +0800

    finish coveralls
---
 .github/workflows/sonar-coveralls.yml | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/sonar-coveralls.yml b/.github/workflows/sonar-coveralls.yml
index 6abc429b1fb..0289a0e70f7 100644
--- a/.github/workflows/sonar-coveralls.yml
+++ b/.github/workflows/sonar-coveralls.yml
@@ -7,7 +7,6 @@ on:
   push:
     branches:
       - master
-      - coveralls
       - "rel/*"
       - "new_*"
     paths-ignore:
@@ -33,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'
 
@@ -47,14 +46,24 @@ jobs:
           restore-keys: ${{ runner.os }}-m2-
       - name:  Test
         # we do not compile client-cpp for saving time, it is tested in client.yml
-        run: mvn -B clean test -pl tsfile,code-coverage -Pcode-coverage -am -Dtest.port.closed=true
+        run: mvn -B clean test -Pcode-coverage -am -Dtest.port.closed=true
       - name: Coveralls GitHub Action
         uses: coverallsapp/github-action@v2
         with:
           github-token: ${{ secrets.COVERALL_TOKEN }}
 
+  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 }}