Skip to content

Commit

Permalink
github action support for gRPC
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkuhn committed Jan 28, 2025
1 parent 24dbab2 commit 03ee52f
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,26 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Install Protoc
uses: arduino/setup-protoc@v3

- name: Build
run: go build -v ./...
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'

- name: Test
run: go test -v ./...
- name: gRPC gen
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
internal/pb/billy.proto
- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

0 comments on commit 03ee52f

Please sign in to comment.