add go lang ci, build only (#152)
diff --git a/.github/workflows/golang-ci.yml b/.github/workflows/golang-ci.yml
new file mode 100644
index 0000000..2276c0e
--- /dev/null
+++ b/.github/workflows/golang-ci.yml
@@ -0,0 +1,26 @@
+name: Golang CI
+
+on:
+ pull_request:
+ paths:
+ - "golang/**"
+ push:
+ paths:
+ - 'golang/**'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Set up Go 1.13
+ uses: actions/setup-go@v1
+ with:
+ go-version: 1.13
+
+ - name: Check out source code
+ uses: actions/checkout@v1
+
+ - name: Build
+ run: |
+ cd golang
+ ./ci.sh
\ No newline at end of file
diff --git a/.github/workflows/ci.yml b/.github/workflows/java-ci.yml
similarity index 76%
rename from .github/workflows/ci.yml
rename to .github/workflows/java-ci.yml
index bde11ac..0ed342c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/java-ci.yml
@@ -1,6 +1,12 @@
-name: CI
+name: Java CI
-on: [push, pull_request]
+on:
+ pull_request:
+ paths:
+ - "java/**"
+ push:
+ paths:
+ - 'java/**'
jobs:
build:
diff --git a/golang/ci.sh b/golang/ci.sh
new file mode 100755
index 0000000..23bcad7
--- /dev/null
+++ b/golang/ci.sh
@@ -0,0 +1,13 @@
+allSamples=`find .|grep /assembly/linux/dev.sh | awk '{gsub("/assembly/linux/dev.sh","");print}'`
+currentFolder=`pwd`
+
+for singleSample in $allSamples
+do
+
+cd $singleSample
+
+sh ./assembly/linux/dev.sh
+
+cd $currentFolder
+
+done
\ No newline at end of file
diff --git a/golang/go.mod b/golang/go.mod
index 2a40be0..b10ab89 100644
--- a/golang/go.mod
+++ b/golang/go.mod
@@ -1,4 +1,4 @@
-module github.com/dubbogo/dubbo-samples/golang
+module github.com/apache/dubbo-samples/golang
require (
github.com/apache/dubbo-go v1.3.0