2020-04-30 17:37:41 +02:00
|
|
|
name: Continuous integration
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-04-30 17:41:59 +02:00
|
|
|
branches: [master]
|
2020-04-30 17:37:41 +02:00
|
|
|
pull_request:
|
2020-04-30 17:41:59 +02:00
|
|
|
branches: [master]
|
2020-04-30 17:37:41 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-04-30 17:41:59 +02:00
|
|
|
- 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
|
|
|
|
|
2020-04-30 17:45:48 +02:00
|
|
|
- name: Install Protoc
|
|
|
|
uses: arduino/setup-protoc@master
|
|
|
|
|
2020-04-30 17:41:59 +02:00
|
|
|
- name: Get dependencies
|
2020-04-30 17:47:28 +02:00
|
|
|
run: ./scripts/setup/install-go-gen
|
2020-04-30 17:37:41 +02:00
|
|
|
|
2020-04-30 17:41:59 +02:00
|
|
|
- name: Protos
|
|
|
|
run: make protos
|
2020-04-30 17:37:41 +02:00
|
|
|
|
2020-04-30 17:41:59 +02:00
|
|
|
- name: Build
|
|
|
|
run: make cli
|
2020-04-30 17:37:41 +02:00
|
|
|
|
2020-04-30 17:41:59 +02:00
|
|
|
- name: Test
|
|
|
|
run: make test
|