feat: add CI (#12)
* feat: add ci
* fix: use Running Suite: ApisixControlPlane Suite
=======================================
Random Seed: [1m1597669760[0m
Will run [1m0[0m of [1m0[0m specs
[1m[32mRan 0 of 0 Specs in 0.000 seconds[0m
[1m[32mSUCCESS![0m -- [32m[1m0 Passed[0m | [91m[1m0 Failed[0m | [33m[1m0 Pending[0m | [36m[1m0 Skipped[0m
PASS
ok github.com/apache/apisix-control-plane 0.011s instead ofginkgo
* fix: add EOL
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..5cb31d6
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: API CI
+
+on:
+ push:
+ branches:
+ - master
+ - kv/ci
+ pull_request:
+ branches:
+ - master
+
+jobs:
+
+ run-test:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: setup go
+ uses: actions/setup-go@v1
+ with:
+ go-version: '1.13'
+
+ - name: run test
+ working-directory: ./
+ run: |
+ go test ./...
+