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 2021/05/25 12:35:13 UTC
[iotdb] 01/01: Enable sonar-coveralls for pr from fork repos
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch try_sonar
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 1e89ffa9aae03d18c13a1e5488cc82e3af6b355b
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue May 25 20:34:27 2021 +0800
Enable sonar-coveralls for pr from fork repos
---
.github/workflows/sonar-coveralls.yml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/sonar-coveralls.yml b/.github/workflows/sonar-coveralls.yml
index 7f1dcdc..68f2705 100644
--- a/.github/workflows/sonar-coveralls.yml
+++ b/.github/workflows/sonar-coveralls.yml
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-name: Sonar-Coveralls(Ignore this on folk Repos)
+name: Sonar-Coveralls
on:
push:
@@ -10,7 +10,7 @@ on:
- "rel/*"
paths-ignore:
- "docs/**"
- pull_request:
+ pull_request_target:
branches:
- master
- "rel/*"
@@ -43,7 +43,7 @@ jobs:
# we do not compile client-cpp for saving time, it is tested in client.yml
run: mvn -B clean post-integration-test -Dtest.port.closed=true -Pcode-coverage
- name: Code Coverage (Coveralls)
- if: ${{ success() && (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'apache/iotdb' || github.event_name == 'push') }}
+ if: ${{ success() }}
run: |
mvn -B post-integration-test -Pcode-coverage -pl code-coverage
mvn -B coveralls:report \
@@ -53,7 +53,7 @@ jobs:
-DrepoToken=${{ secrets.COVERALL_TOKEN }} \
-Pcode-coverage
- name: SonarCloud Report
- if: ${{ success() && (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'apache/iotdb' || github.event_name == 'push') }}
+ if: ${{ success() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}