You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/11/15 02:32:46 UTC
[iotdb] branch master updated: Create sonar_and_coverall.yml
This is an automated email from the ASF dual-hosted git repository.
hxd 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 321dcf4 Create sonar_and_coverall.yml
321dcf4 is described below
commit 321dcf42b12aac4d53b01d9c152cec8cc95150cd
Author: Xiangdong Huang <hx...@apache.org>
AuthorDate: Sun Nov 15 10:32:29 2020 +0800
Create sonar_and_coverall.yml
try using token
---
.github/workflows/sonar_and_coverall.yml | 48 ++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/.github/workflows/sonar_and_coverall.yml b/.github/workflows/sonar_and_coverall.yml
new file mode 100644
index 0000000..f91588d
--- /dev/null
+++ b/.github/workflows/sonar_and_coverall.yml
@@ -0,0 +1,48 @@
+# 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 And Coverall with Maven
+
+on:
+ push:
+ branches:
+ - master
+ - 'rel/*'
+ paths-ignore:
+ - 'docs/**'
+ pull_request:
+ branches:
+ - master
+ - 'rel/*'
+ - cluster_new
+ paths-ignore:
+ - 'docs/**'
+
+jobs:
+ coveralls:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11.0.x
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11.0.x
+ - name: Cache Maven packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2
+ key: code-coverage-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+ - name: Run Integration Test
+ run: mvn -B post-integration-test -Pcode-coverage -Pcoveralls -pl '!distribution' -am
+ - name: Code Coverage (Coveralls) Test
+ run: |
+ mvn -B coveralls:report \
+ --no-transfer-progress \
+ -DserviceName=github \
+ -D branch=$BRANCH_NAME \
+ -D pullRequest=$PR_NUMBER \
+ -D repoToken=MiEOlMMMNQhLNV4yayn7rRUPyVSQzbzbZ \
+ -pl tsfile,server,jdbc,cli,session,hive-connector,flink-iotdb-connector,flink-tsfile-connector