-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add opencdc proto files * add ToProto methods * add fromproto methods, tests and benchmarks * add metadata constants test * fix linter errors * add json unmarshalling to opencdc record (incomplete) * make linter happy * rename file * add buf github action * update buf.build/protocolbuffers/go * simplify github action * add nested struct in test * move proto related code into single file, documentation * goimports
- Loading branch information
1 parent
b393cff
commit 680d445
Showing
21 changed files
with
1,637 additions
and
46 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,39 @@ | ||
name: buf | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bufbuild/buf-setup-action@v1 | ||
- uses: bufbuild/buf-lint-action@v1 | ||
with: | ||
input: 'proto' | ||
|
||
# We need to fetch main so we can compare breaking changes against whatever is in main right now. | ||
- name: Fetch origin/main | ||
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/main:refs/remotes/origin/main | ||
|
||
- uses: bufbuild/buf-breaking-action@v1 | ||
with: | ||
input: 'proto' | ||
against: '.git#branch=origin/main,subdir=proto' | ||
|
||
# Push buf module to the buf schema registry, but only if the validate action succeeded and if the action is running | ||
# on branch main. | ||
push: | ||
runs-on: ubuntu-latest | ||
needs: validate | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bufbuild/buf-setup-action@v1 | ||
- uses: bufbuild/buf-push-action@v1 | ||
with: | ||
input: 'proto' | ||
buf_token: ${{ secrets.BUF_TOKEN }} |
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
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
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
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
Oops, something went wrong.