Test code generation in CI #2

Merged
allanger merged 3 commits from test-from-a-branch into main 2026-04-20 20:03:18 +00:00
2 changed files with 8 additions and 2 deletions

View File

@@ -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

View File

@@ -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 {}