-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: support releasing proto definitions to BSR (#274)
Adds support for pushing the proto definitions to BSR <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a continuous integration (CI) workflow for automated checks on Protocol Buffers. - Added a new module configuration for managing protocol buffers. - **Documentation** - New workflow file created to outline CI processes. - Configuration file established for module versioning and structure. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Rootul P <[email protected]>
- Loading branch information
Showing
3 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: buf-ci | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+" | ||
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+" | ||
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+" | ||
pull_request: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
jobs: | ||
buf: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bufbuild/buf-action@v1 | ||
with: | ||
token: ${{ secrets.BUF_TOKEN }} | ||
input: "pb" | ||
breaking-against: 'https://github.com/celestiaorg/nmt.git#branch=main,ref=HEAD~1,subdir=pb' | ||
# Run breaking change, lint, and format checks for Protobuf sources against all branches, | ||
# 'pb' subdirectory, then push to the Buf Schema Registry once validated | ||
lint: true | ||
format: true | ||
breaking: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: v2 | ||
modules: | ||
- path: pb | ||
name: buf.build/celestia/nmt | ||
lint: | ||
ignore_only: | ||
PACKAGE_DIRECTORY_MATCH: | ||
# ignoring because fixing means we will do a breaking change | ||
- pb/proof.proto | ||
PACKAGE_VERSION_SUFFIX: | ||
# ignoring because fixing means we will do a breaking change | ||
- pb/proof.proto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters