Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: buf actions #725

Merged
merged 7 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .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
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
Loading