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 fa5aafa  [IOTDB-1197] add iotdb-client-go as a git submodule of IoTDB 
repo (#2792)
fa5aafa is described below

commit fa5aafa82dafce229cde4518a0377b3e53b7ea3e
Author: Xiangdong Huang <[email protected]>
AuthorDate: Thu Apr 1 16:20:35 2021 +0800

    [IOTDB-1197] add iotdb-client-go as a git submodule of IoTDB repo (#2792)
---
 .github/workflows/client-go.yml | 51 +++++++++++++++++++++++++++++++++++++++++
 .gitmodules                     |  3 +++
 client-go                       |  1 +
 pom.xml                         | 10 +++++---
 4 files changed, 62 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/client-go.yml b/.github/workflows/client-go.yml
new file mode 100644
index 0000000..f315048
--- /dev/null
+++ b/.github/workflows/client-go.yml
@@ -0,0 +1,51 @@
+# This workflow is just for checking whether modifications works for the Go 
client.
+
+name: Go Client
+
+on:
+  push:
+    branches:
+      - master
+      - 'rel/*'
+    paths-ignore:
+      - 'docs/**'
+  pull_request:
+    branches:
+      - master
+      - 'rel/*'
+    paths-ignore:
+      - 'docs/**'
+  # allow manually run the action:
+  workflow_dispatch:
+
+jobs:
+  unix:
+    strategy:
+      fail-fast: false
+      max-parallel: 20
+      matrix:
+        java: [ 11 ]
+        os: [ ubuntu-latest ]
+    runs-on: ${{ matrix.os}}
+
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          token: ${{secrets.GITHUB_TOKEN}}
+          submodules: recursive
+      - name: Set up JDK ${{ matrix.java }}
+        uses: actions/setup-java@v1
+        with:
+          java-version: ${{ matrix.java }}
+      - name: Cache Maven packages
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2
+          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-m2-
+      - name: Compile IoTDB Server
+        run: mvn -B package -Dmaven.test.skip=true  -am -pl server
+      - name: Integration test
+        shell: bash
+        run: |
+          cd client-go && make e2e_test_for_parent_git_repo 
e2e_test_clean_for_parent_git_repo
\ No newline at end of file
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..4c91dec
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "iotdb-client-go"]
+       path = client-go
+       url = [email protected]:apache/iotdb-client-go.git
diff --git a/client-go b/client-go
new file mode 160000
index 0000000..3208ea6
--- /dev/null
+++ b/client-go
@@ -0,0 +1 @@
+Subproject commit 3208ea6a77b980b455d96da47240951fd65b92e7
diff --git a/pom.xml b/pom.xml
index b6750e7..092d8c4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -555,6 +555,7 @@
                             <exclude>**/.git/**</exclude>
                             <exclude>**/.mvn/**</exclude>
                             <exclude>**/.gitignore</exclude>
+                            <exclude>**/.gitmodules</exclude>
                             <exclude>**/.git-blame-ignore-revs</exclude>
                             <!-- Maven related files -->
                             <exclude>**/target/**</exclude>
@@ -575,7 +576,7 @@
                             <exclude>hadoopbin</exclude>
                             <exclude>windowssystem32</exclude>
                             <!-- generated by Github -->
-                            <exclude>.github/**</exclude>
+                            <exclude>**/.github/**</exclude>
                             <!-- figures -->
                             <exclude>**/.eps</exclude>
                             <exclude>**/.png</exclude>
@@ -587,12 +588,15 @@
                             <exclude>*.json</exclude>
                             <!-- visualization plans -->
                             <exclude>**/*.plan</exclude>
-                            <exclude>NOTICE-binary</exclude>
-                            <exclude>LICENSE-binary</exclude>
+                            <exclude>**/NOTICE-binary</exclude>
+                            <exclude>**/LICENSE-binary</exclude>
                             <!-- json does not support comments-->
                             <exclude>**/*.json</exclude>
                             <!-- the zeppelin export file format-->
                             <exclude>**/*.zpln</exclude>
+                            <!-- exclude go.mod and go.sum in iotdb-client-go 
submodule-->
+                            <exclude>**/go.mod</exclude>
+                            <exclude>**/go.sum</exclude>
                         </excludes>
                     </configuration>
                 </plugin>

Reply via email to