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

chore: use buf ci #11071

Merged
merged 32 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1177671
use buf ci
tac0turtle Jan 31, 2022
1da7f78
check breakage against target branch
tac0turtle Jan 31, 2022
709242e
test proto
tac0turtle Jan 31, 2022
81872a5
fix repo
tac0turtle Jan 31, 2022
a28d909
setinput
tac0turtle Jan 31, 2022
7e2beef
undo proto change
tac0turtle Jan 31, 2022
79bdd83
minor change
tac0turtle Jan 31, 2022
ce2df50
Merge branch 'master' into 11044-proto-ci
tac0turtle Jan 31, 2022
bf6e459
Merge branch 'master' into 11044-proto-ci
tac0turtle Feb 1, 2022
15ad8c7
test without subdir
tac0turtle Feb 1, 2022
f0b7836
addback subdir
tac0turtle Feb 1, 2022
eca0aca
try without input
tac0turtle Feb 1, 2022
26aee3a
Merge branch 'master' into 11044-proto-ci
tac0turtle Feb 1, 2022
62d06a0
proto change
tac0turtle Feb 1, 2022
999ce7b
fix ci
tac0turtle Feb 1, 2022
ea30b95
remove head
tac0turtle Feb 1, 2022
bd50407
add proto
tac0turtle Feb 1, 2022
6c91fc7
add back
tac0turtle Feb 1, 2022
33ab39f
add .git
tac0turtle Feb 1, 2022
4b414e6
test
tac0turtle Feb 1, 2022
438ebdd
test++
tac0turtle Feb 1, 2022
d81078e
test+++
tac0turtle Feb 1, 2022
6e45245
something
tac0turtle Feb 1, 2022
c10b142
something
tac0turtle Feb 1, 2022
d0f51bb
something++
tac0turtle Feb 1, 2022
d0a5a85
test
tac0turtle Feb 1, 2022
481ee3c
test
tac0turtle Feb 1, 2022
2271633
do different design
tac0turtle Feb 1, 2022
aefbac8
revert proto change
tac0turtle Feb 1, 2022
cb20ad9
docs
tac0turtle Feb 1, 2022
3e02cdc
revert comment
tac0turtle Feb 1, 2022
5bd988c
Merge branch 'master' into 11044-proto-ci
tac0turtle Feb 1, 2022
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
21 changes: 21 additions & 0 deletions .github/workflows/proto-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Buf-Push
# Protobuf runs buf (https://buf.build/) push updated proto files to https://buf.build/cosmos/cosmos-sdk
# This workflow is only run when a .proto file has been changed
on:
push:
branches:
- master
paths:
- 'proto/**'

jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-push-action@v1
with:
input: 'proto'
buf_token: ${{ secrets.BUF_TOKEN }}

35 changes: 19 additions & 16 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,31 @@ name: Protobuf
# This workflow is only run when a .proto file has been changed
on:
pull_request:
paths:
- 'proto/**'
push:
branches:
- master
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this needs to run on master?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't hurt

paths:
- 'proto/**'

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@master
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.proto
- name: lint
run: make proto-lint
if: env.GIT_DIFF
breakage:
- uses: actions/checkout@v2
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-lint-action@v1
with:
input: 'proto'

break-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: technote-space/[email protected]
- uses: actions/checkout@v2
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-breaking-action@v1
with:
PATTERNS: |
**/**.proto
- name: check-breakage
run: make proto-check-breaking
if: env.GIT_DIFF
input: 'proto'
against: 'https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto'