diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 01961bd46..5f8b1559a 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -95,6 +95,7 @@ btceth btcusd btcusdt bto +bufbuild cca ccc Ccjku @@ -752,4 +753,4 @@ Ywn Yxwa zaptest ZFvy -zstd +zstd \ No newline at end of file diff --git a/.github/workflows/buf_breaking.yml b/.github/workflows/buf_breaking.yml new file mode 100644 index 000000000..00a14ed3f --- /dev/null +++ b/.github/workflows/buf_breaking.yml @@ -0,0 +1,22 @@ +name: Proto Breaking + +on: + pull_request: + branches: [ main ] + paths: + - proto/** + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1 + with: + version: "1.39.0" + # Run breaking change detection for Protobuf sources against the current + # `main` branch, 'proto' subdirectory + - uses: bufbuild/buf-breaking-action@v1 + with: + input: proto + against: https://github.com/skip-mev/connect.git#branch=main,ref=HEAD~1,subdir=proto diff --git a/.github/workflows/buf_push.yml b/.github/workflows/buf_push.yml new file mode 100644 index 000000000..3c3304f96 --- /dev/null +++ b/.github/workflows/buf_push.yml @@ -0,0 +1,21 @@ +name: BSR Push + +on: + # Apply to pushes on 'main' branch that affect the 'proto' directory + push: + branches: + - main + paths: + - proto/** +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1 + with: + version: "1.39.0" + - uses: bufbuild/buf-push-action@v1 + with: + input: proto + buf_token: ${{ secrets.BUF_TOKEN }} diff --git a/proto/buf.yaml b/proto/buf.yaml index 985c13b29..883e9ec9e 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -1,5 +1,5 @@ version: v1 -name: buf.build/skip-mev/slinky +name: buf.build/skip-mev/connect deps: - buf.build/cosmos/cosmos-proto