Test code generation in CI (#2)
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/go-generate Pipeline was successful
ci/woodpecker/push/repo-checks Pipeline was successful

Reviewed-on: #2
Co-authored-by: Nikolai Rodionov <allanger@badhouseplants.net>
Co-committed-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit was merged in pull request #2.
This commit is contained in:
2026-04-20 20:03:17 +00:00
committed by Nikolai Rodionov
parent 7f6a3e117e
commit 2b810cf630
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 {}