Skip to content

Commit

Permalink
Merge pull request #361 from zoncoen/proto
Browse files Browse the repository at this point in the history
chore: bump protoc* tools
  • Loading branch information
zoncoen authored Oct 31, 2023
2 parents 86100fa + db7733d commit 810e749
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 44 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $(BIN_DIR):
@mkdir -p $(BIN_DIR)

PROTOC := $(BIN_DIR)/protoc
PROTOC_VERSION := 21.12
PROTOC_VERSION := 24.4
PROTOC_OS := $(UNAME_OS)
ifeq "$(UNAME_OS)" "Darwin"
PROTOC_OS = osx
Expand All @@ -41,11 +41,11 @@ $(PROTOC): | $(BIN_DIR)

PROTOC_GEN_GO := $(BIN_DIR)/protoc-gen-go
$(PROTOC_GEN_GO): | $(BIN_DIR)
@$(GO) install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28.1
@$(GO) install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31.0

PROTOC_GEN_GO_GRPC := $(BIN_DIR)/protoc-gen-go-grpc
$(PROTOC_GEN_GO_GRPC): | $(BIN_DIR)
@$(GO) install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0
@$(GO) install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0

GOPROTOYAMLTAG := $(BIN_DIR)/goprotoyamltag
$(GOPROTOYAMLTAG): | $(BIN_DIR)
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,20 @@ You can write test scenarios as YAML files and executes them.

```yaml github.yaml
title: get scenarigo repository
vars:
user: zoncoen
repo: scenarigo
steps:
- title: GET https://api.github.com/repos/zoncoen/scenarigo
vars:
user: zoncoen
repo: scenarigo
- title: get repository
protocol: http
request:
method: GET
url: "https://api.github.com/repos/{{vars.user}}/{{vars.repo}}"
url: 'https://api.github.com/repos/{{vars.user}}/{{vars.repo}}'
expect:
code: OK
body:
name: "{{vars.repo}}"
id: '{{int($) > 0}}'
name: '{{vars.repo}}'
```
## Installation
Expand Down
111 changes: 81 additions & 30 deletions testdata/gen/pb/test/test.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions testdata/gen/pb/test/test_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion testdata/proto/test/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ message EchoResponse {
string message_body = 2;
int64 received_at = 3;
UserType user_type = 4;
State state = 5;
oneof user_id {
string customer_id = 5;
string staff_id = 6;
}
State state = 7;
StringValue nullable_string = 11;
}

Expand Down

0 comments on commit 810e749

Please sign in to comment.