Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: buf bsr #512

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,15 @@ jobs:
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.GO_TAPIR_TOKEN }} \
--data '{"event_type": "publish", "client_payload": { "tag": "'"$RELEASE_TAG"'" }}'

buf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: bufbuild/buf-setup-action@v1

- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
draft: ${{ github.ref_name != 'main'}}
20 changes: 9 additions & 11 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: generate go code
run: make generate TEMPLATE=buf.gen.go.yaml

lint:
buf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -100,15 +100,13 @@ jobs:

- uses: bufbuild/buf-lint-action@v1

breaking:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-breaking-action@v1
if: always()
with:
against: "https://github.com/stroeer/tapir.git#branch=main"

- uses: bufbuild/buf-breaking-action@v1
if: always()
with:
against: "https://github.com/stroeer/tapir.git#branch=main"
- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
draft: ${{ github.ref_name != 'main'}}

18 changes: 11 additions & 7 deletions stroeer/navigation/v1/navigation_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@ import "stroeer/core/v1/shared.proto";

option go_package = "github.com/stroeer/go-tapir/navigation/v1;navigation";

// The navigation service provides access to the navigation tree structure
// used in t-online products
service NavigationService {
// Retrieve navigation tree structure
// Get navigation tree structure for t-online products
rpc GetNavigation(GetNavigationRequest) returns (GetNavigationResponse) {}
}

// Request for getting navigation tree structure
message GetNavigationRequest {}

//Response for getting navigation tree structure
message GetNavigationResponse {
// Navigation tree structure including internal and external references
// The root references has nested references
// The root reference has nested references
// root
// - menu
// - submenu
// - menu
// - submenu
// - external references
// - menu
// - submenu
// - menu
// - submenu
// - external references
stroeer.core.v1.Reference navigation_menu = 1;
}