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 2022/04/27 13:31:57 UTC
[iotdb] branch master updated: Disable sonar check for PRs from fork repo (#5700)
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 e6513969dd Disable sonar check for PRs from fork repo (#5700)
e6513969dd is described below
commit e6513969dd7782b0dc3548daf5ec979348e054ab
Author: Haonan <hh...@outlook.com>
AuthorDate: Wed Apr 27 21:31:52 2022 +0800
Disable sonar check for PRs from fork repo (#5700)
---
.github/workflows/sonar-coveralls.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/sonar-coveralls.yml b/.github/workflows/sonar-coveralls.yml
index e488e97b2f..443117df46 100644
--- a/.github/workflows/sonar-coveralls.yml
+++ b/.github/workflows/sonar-coveralls.yml
@@ -32,6 +32,7 @@ env:
jobs:
ubuntu:
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@v2
@@ -49,7 +50,7 @@ jobs:
# we do not compile client-cpp for saving time, it is tested in client.yml
run: mvn -B clean compile post-integration-test -Dtest.port.closed=true -Pcode-coverage -P '!testcontainer,!influxdb-protocol'
- 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 \
@@ -59,7 +60,7 @@ jobs:
-DrepoToken=${{ secrets.COVERALL_TOKEN }} \
-Pcode-coverage -P '!testcontainer'
- 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 }}