Add github actions

This commit is contained in:
Djordje Lukic 2020-04-30 17:37:41 +02:00 committed by GitHub
parent ebbd660101
commit cc87bbe34e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 0 deletions

39
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Continuous integration
on:
push:
branches: [ master ]
pull_request:
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: Protos
run: make protos
- name: Build
run: make cli
- name: Test
run: make test