diff --git a/.gitea/workflows/proto.yml b/.gitea/workflows/proto.yml new file mode 100644 index 00000000..49670ac2 --- /dev/null +++ b/.gitea/workflows/proto.yml @@ -0,0 +1,29 @@ +name: Protobuf +# Protobuf runs buf (https://buf.build/) lint and check-breakage +# This workflow is only run when a .proto file has been changed +on: + pull_request: + paths: + - "proto/**" + +jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v3 + - uses: bufbuild/buf-setup-action@v1.9.0 + - uses: bufbuild/buf-lint-action@v1 + with: + input: "proto" + + # TODO: Update with gitea reference + # break-check: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - uses: bufbuild/buf-setup-action@v1.9.0 + # - 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"