Skip to content

Commit

Permalink
ci: buf actions (#725)
Browse files Browse the repository at this point in the history
Signed-off-by: check-spelling-bot <[email protected]>
Co-authored-by: Tyler <[email protected]>
  • Loading branch information
technicallyty and technicallyty authored Sep 5, 2024
1 parent 36c682c commit 2d6a5f5
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ btceth
btcusd
btcusdt
bto
bufbuild
cca
ccc
Ccjku
Expand Down Expand Up @@ -752,4 +753,4 @@ Ywn
Yxwa
zaptest
ZFvy
zstd
zstd
22 changes: 22 additions & 0 deletions .github/workflows/buf_breaking.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions .github/workflows/buf_push.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion proto/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: v1
name: buf.build/skip-mev/slinky
name: buf.build/skip-mev/connect

deps:
- buf.build/cosmos/cosmos-proto
Expand Down

0 comments on commit 2d6a5f5

Please sign in to comment.