-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: swagger generation from buf-defined deps, migrate to json format… (
#257) * fix: swagger generation from buf-defined deps, migrate to json format, nixify some deps * refactor: use newer proto-builder, adopt buf in gh actions * fix: disable break-check as master depends on cosmos protos newer than it supposed to * ci: buf push * ci: buf push drafts on non-master branches * ci: buf push even if proto haven't changed * ci: buf push draft if not in master * deps: fix ibc deps versions * deps: fix proto gen
- Loading branch information
Showing
47 changed files
with
25,847 additions
and
65,496 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.direnv | ||
.devenv | ||
build | ||
localnet-setup | ||
docker |
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 |
---|---|---|
@@ -1 +1 @@ | ||
use flake | ||
use flake --impure |
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
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@v4 | ||
- uses: bufbuild/[email protected] | ||
- uses: bufbuild/buf-push-action@v1 | ||
with: | ||
input: "proto" | ||
buf_token: ${{ secrets.BUF_TOKEN }} | ||
draft: ${{ github.ref_name != 'master'}} |
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 |
---|---|---|
|
@@ -3,28 +3,43 @@ name: Protobuf | |
# This workflow is only run when a .proto file has been changed | ||
on: | ||
pull_request: | ||
paths: | ||
- "proto/**" | ||
|
||
jobs: | ||
lint: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: technote-space/get-diff-action@v5 | ||
- uses: actions/checkout@v4 | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/**.proto | ||
- name: lint | ||
run: make proto-lint | ||
**/buf.yaml | ||
buf.work.yaml | ||
buf.gen.yaml | ||
- run: | | ||
make proto-gen | ||
if: env.GIT_DIFF | ||
breakage: | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: technote-space/get-diff-action@v5 | ||
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
- uses: bufbuild/buf-lint-action@v1 | ||
with: | ||
PATTERNS: | | ||
**/**.proto | ||
- name: check-breakage | ||
run: make proto-check-breaking | ||
if: env.GIT_DIFF | ||
input: "proto" | ||
|
||
# FIXME: enable after merging | ||
# break-check: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: bufbuild/[email protected] | ||
# - uses: bufbuild/buf-breaking-action@v1 | ||
# with: | ||
# input: "proto" | ||
# against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=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
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 was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.