浏览代码

Use setup-dev.sh script

Djordje Lukic 5 年之前
父节点
当前提交
04e2710380
共有 1 个文件被更改,包括 19 次插入25 次删除
  1. 19 25
      .github/workflows/ci.yml

+ 19 - 25
.github/workflows/ci.yml

@@ -2,38 +2,32 @@ name: Continuous integration
 
 on:
   push:
-    branches: [ master ]
+    branches: [master]
   pull_request:
-    branches: [ master ]
+    branches: [master]
 
 jobs:
-
   build:
     name: Build
     runs-on: ubuntu-latest
     steps:
-    - name: Set up Go 1.13
-      uses: actions/setup-go@v1
-      with:
-        go-version: 1.13
-      id: go
-        
-    - name: Checkout code into the Go module directory
-      uses: actions/checkout@v2
-    
-    - name: Get dependencies
-      run: |
-        go get gotest.tools/gotestsum
-        go get github.com/stevvooe/protobuild
-        go get github.com/gogo/protobuf/proto
-        go get github.com/gogo/protobuf/jsonpb
-        go get github.com/golang/protobuf/protoc-gen-go
+      - name: Set up Go 1.13
+        uses: actions/setup-go@v1
+        with:
+          go-version: 1.13
+        id: go
+
+      - name: Checkout code into the Go module directory
+        uses: actions/checkout@v2
+
+      - name: Get dependencies
+        run: ./setup-dev.sh
 
-    - name: Protos
-      run: make protos
+      - name: Protos
+        run: make protos
 
-    - name: Build
-      run: make cli
+      - name: Build
+        run: make cli
 
-    - name: Test
-      run: make test
+      - name: Test
+        run: make test