From cb1504cef8fdc7375c103b3c388810debfa96327 Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Wed, 6 Nov 2024 13:06:06 +0300 Subject: [PATCH] [#] Lint and check protobuf schemas for breaking changes Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/buf.yml | 21 +++++++++++++++++++++ .github/workflows/buf.yml | 36 ------------------------------------ 2 files changed, 21 insertions(+), 36 deletions(-) create mode 100644 .forgejo/workflows/buf.yml delete mode 100644 .github/workflows/buf.yml diff --git a/.forgejo/workflows/buf.yml b/.forgejo/workflows/buf.yml new file mode 100644 index 0000000..3b137ad --- /dev/null +++ b/.forgejo/workflows/buf.yml @@ -0,0 +1,21 @@ +name: Buf check + +on: + workflow_dispatch: + pull_request: + branches: + - master + +jobs: + buf: + runs-on: docker + container: + image: node:22-bookworm + steps: + - uses: actions/checkout@v3 + - uses: https://github.com/bufbuild/buf-action@v1 + with: + version: 1.46.0 + pr_comment: false + push: false + archive: false diff --git a/.github/workflows/buf.yml b/.github/workflows/buf.yml deleted file mode 100644 index 5d9d740..0000000 --- a/.github/workflows/buf.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Buf lint - -on: - pull_request: - branches: - - master - -jobs: - lint: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: wizhi/setup-buf@v1 - with: - version: 0.20.5 - - run: buf check lint - - breaking: - runs-on: ubuntu-20.04 - steps: - - name: Setup buf - uses: wizhi/setup-buf@v1 - with: - version: 0.20.5 - - name: Check out ref code - uses: actions/checkout@v2 - with: - ref: ${{ github.base_ref }} - path: baseref - - run: cd baseref && buf image build -o image.bin - - - name: Check out code - uses: actions/checkout@v2 - with: - path: prclone - - run: cd prclone && buf check breaking --against-input ../baseref/image.bin