From 4cc18b110989326fe427a9f845585ed02072a3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 16 Feb 2022 18:30:10 +0100 Subject: [PATCH] add support for buf (#10112) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add support for buf Co-authored-by: Alex McKinney Signed-off-by: Rémy Léone --- .github/workflows/buf.yml | 20 ++++++++++++++++++++ prompb/buf.lock | 10 ++++++++++ prompb/buf.yaml | 4 ++++ 3 files changed, 34 insertions(+) create mode 100644 .github/workflows/buf.yml create mode 100644 prompb/buf.lock create mode 100644 prompb/buf.yaml diff --git a/.github/workflows/buf.yml b/.github/workflows/buf.yml new file mode 100644 index 000000000..0de1aed6c --- /dev/null +++ b/.github/workflows/buf.yml @@ -0,0 +1,20 @@ +on: + push: + branches: + - main + +jobs: + steps: + - uses: actions/checkout@v2 + - uses: bufbuild/buf-setup-action@v0.6.0 + - uses: bufbuild/buf-lint-action@v1 + with: + input: 'prompb' + - uses: bufbuild/buf-breaking-action@v1 + with: + input: 'prompb' + against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD~1,subdir=prompb' + - uses: bufbuild/buf-push-action@v1 + with: + input: 'prompb' + buf_token: ${{ secrets.BUF_TOKEN }} diff --git a/prompb/buf.lock b/prompb/buf.lock new file mode 100644 index 000000000..30b0f0847 --- /dev/null +++ b/prompb/buf.lock @@ -0,0 +1,10 @@ +# Generated by buf. DO NOT EDIT. +version: v1 +deps: + - remote: buf.build + owner: gogo + repository: protobuf + branch: main + commit: 4df00b267f944190a229ce3695781e99 + digest: b1-sjLgsg7CzrkOrIjBDh3s-l0aMjE6oqTj85-OsoopKAw= + create_time: 2021-08-10T00:14:28.345069Z diff --git a/prompb/buf.yaml b/prompb/buf.yaml new file mode 100644 index 000000000..694880a26 --- /dev/null +++ b/prompb/buf.yaml @@ -0,0 +1,4 @@ +version: v1 +name: buf.build/prometheus/prometheus +deps: + - buf.build/gogo/protobuf