-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add actions for lint proto (#277)
- Loading branch information
1 parent
62881ec
commit 894fbb6
Showing
2 changed files
with
26 additions
and
1 deletion.
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,25 @@ | ||
name: Protobuf | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "proto/**" | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run proto format and generate | ||
run: | | ||
docker run --rm --user root --name fx-core-proto-fmt-0.11.2 -v `pwd`:/workspace --workdir /workspace ghcr.io/cosmos/proto-builder:0.11.2 sh ./contrib/protoc/format.sh | ||
docker run --rm --user root --name fx-core-proto-gen-0.11.2 -v `pwd`:/workspace --workdir /workspace tendermintdev/sdk-proto-gen:v0.7 sh ./contrib/protoc/gen.sh | ||
- name: Check diff | ||
run: git diff --exit-code |
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