Skip to content

Add steps to workflow to generate gRPC code. #3

Add steps to workflow to generate gRPC code.

Add steps to workflow to generate gRPC code. #3

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Run Testcases
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install Protocol Buffers Compiler
run: sudo apt-get install -y protobuf-compiler
- name: Install protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Install protoc-gen-go-grpc
run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- name: Generate gRPC code
run: ./scripts/genproto.sh
- name: Get dependencies
run: go mod download
- name: Build
run: go build ./...
- name: Run tests
run: go test ./... -v