mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-28 10:31:29 +02:00
[management, client] add protobuf breaking changes check (#7305)
* add protobuf breaking changes check
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* disable path check for now
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* enable breaking checks
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* testing breaking change
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* Revert "testing breaking change"
This reverts commit 05e6ef9b78.
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* remove commented out proto paths
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* disable pushes
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* responded to feedback
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* trigger workflow on changes to buf config or the workflow itself
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* fix the workflow file name
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
* explicit config for actions
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
---------
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
33
.github/workflows/buf.yml
vendored
Normal file
33
.github/workflows/buf.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: protobuf checks
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- "release-*"
|
||||
pull_request:
|
||||
paths:
|
||||
- ".github/workflows/buf.yml"
|
||||
- "**/buf.yaml"
|
||||
- "**/buf.lock"
|
||||
- "**/buf.gen.yaml"
|
||||
- "**.proto"
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
jobs:
|
||||
buf:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: bufbuild/buf-action@8c6a16e16f12ba20b6470afa9c2ba9b5ba8c97c3 # v1.5.0
|
||||
with:
|
||||
push: false
|
||||
archive: false
|
||||
pr_comment: false
|
||||
build: false
|
||||
lint: false
|
||||
format: false
|
||||
breaking: true
|
||||
Reference in New Issue
Block a user