feat: initial buf proto files

This commit is contained in:
Steven
2023-07-31 19:57:31 +08:00
parent 4cc2de8e82
commit 1f9c87b81b
13 changed files with 1198 additions and 18 deletions

30
.github/workflows/proto-linter.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Proto linter
on:
pull_request:
branches:
- main
- "release/*.*.*"
paths:
- "proto/**"
jobs:
lint-protos:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup buf
uses: bufbuild/buf-setup-action@v1
- name: buf lint
uses: bufbuild/buf-lint-action@v1
with:
input: "proto"
- name: buf format
run: |
if [[ $(buf format -d) ]]; then
echo "Run 'buf format -w'"
exit 1
fi