From 04e2710380fc051f40c44b4170a29a9e2a641d6d Mon Sep 17 00:00:00 2001 From: Djordje Lukic Date: Thu, 30 Apr 2020 17:41:59 +0200 Subject: [PATCH] Use setup-dev.sh script --- .github/workflows/ci.yml | 44 +++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b93ecf696..2f201feba 100644 --- a/.github/workflows/ci.yml +++ b/.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: Protos - run: make protos + - name: Checkout code into the Go module directory + uses: actions/checkout@v2 - - name: Build - run: make cli + - name: Get dependencies + run: ./setup-dev.sh - - name: Test - run: make test + - name: Protos + run: make protos + + - name: Build + run: make cli + + - name: Test + run: make test