From 25ad77a01efc5d9ee91725f53e4f939e89af421e Mon Sep 17 00:00:00 2001 From: jeronimoalbi Date: Wed, 28 Jun 2023 16:34:06 +0200 Subject: [PATCH] ci: add GitHub workflow to check and lint proto files --- .github/workflows/proto-checker.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/proto-checker.yml diff --git a/.github/workflows/proto-checker.yml b/.github/workflows/proto-checker.yml new file mode 100644 index 0000000000..48c11bc110 --- /dev/null +++ b/.github/workflows/proto-checker.yml @@ -0,0 +1,30 @@ +name: Check Protobuf Files + +on: + pull_request: + paths: + - "proto/**" + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v3 + - uses: bufbuild/buf-setup-action@v1.22.0 + - uses: bufbuild/buf-lint-action@v1 + with: + input: "proto" + + break-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: bufbuild/buf-setup-action@v1.22.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"