Test code generation in CI #2
@@ -19,7 +19,8 @@ steps:
|
||||
image: bufbuild/buf
|
||||
commands:
|
||||
- buf generate
|
||||
- cp -r ./gen/go ./target/pkg
|
||||
- rm -rf ./target/pkg/*
|
||||
- cp -r ./gen/go/* ./target/pkg
|
||||
- name: Clone go repo
|
||||
image: alpine
|
||||
environment:
|
||||
@@ -33,4 +34,4 @@ steps:
|
||||
- git -C ./target checkout $CI_COMMIT_BRANCH || git -C ./target checkout -b $CI_COMMIT_BRANCH
|
||||
- git -C ./target add .
|
||||
- 'git -C ./target commit -m "Update protobuf definitions: $CI_COMMIT_SHA"'
|
||||
- git -C ./target push
|
||||
- git -C ./target push --set-upstream origin $CI_COMMIT_BRANCH
|
||||
|
||||
@@ -7,8 +7,13 @@ option go_package = "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg
|
||||
*/
|
||||
service TestService {
|
||||
rpc Ping (PingRequest) returns (PingResponse) {}
|
||||
rpc Pong (PongRequest) returns (PongResponse) {}
|
||||
}
|
||||
|
||||
message PingRequest {}
|
||||
|
||||
message PingResponse {}
|
||||
|
||||
message PongRequest {}
|
||||
|
||||
message PongResponse {}
|
||||
|
||||
Reference in New Issue
Block a user