From bf2b6e8e0e74192ee779a119cb47abb89f40acf3 Mon Sep 17 00:00:00 2001 From: Doug Smith Date: Wed, 20 Sep 2023 14:29:20 -0400 Subject: [PATCH] feature(ci): protobuf compatibility check (pt 2) (#18553) * buf workspace config * remove ignore dir * add workflow * update action versions * correct repo * temporarily remove proto.yml * feature(ci): protobuf compatibility check pt 2 * example proto change * example compatible change * revert proto file * change ref branch to master * fmt --- .github/workflows/protobuf.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/protobuf.yml diff --git a/.github/workflows/protobuf.yml b/.github/workflows/protobuf.yml new file mode 100644 index 00000000000000..bfe0066480ec6c --- /dev/null +++ b/.github/workflows/protobuf.yml @@ -0,0 +1,27 @@ +name: Protobuf Compatibility + +on: + pull_request: + paths: + - "proto/**" + - "lib/vector-core/proto/**" + merge_group: + types: [checks_requested] + +concurrency: + # `github.event.number` exists for pull requests, otherwise fall back to SHA for merge queue + group: ${{ github.workflow }}-${{ github.event.number || github.event.merge_group.head_sha }} + cancel-in-progress: true + +jobs: + validate-protos: + runs-on: ubuntu-latest + steps: + # Run `git checkout` + - uses: actions/checkout@v3 + # Install the `buf` CLI + - uses: bufbuild/buf-setup-action@v1.26.1 + # Perform breaking change detection against the `master` branch + - uses: bufbuild/buf-breaking-action@v1.1.3 + with: + against: "https://github.com/vectordotdev/vector.git#branch=master"