Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
19 changes: 19 additions & 0 deletions .github/workflows/buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Buf CI
on:
push:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
delete:
permissions:
contents: read
pull-requests: write
jobs:
buf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v1
with:
version: 1.50.0 # Keep in sync with Makefile BUF_VERSION
format: false # Turn off format, since most proto definitions are for testing
token: ${{ secrets.BUF_TOKEN }}
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ COPYRIGHT_YEARS := 2025
LICENSE_IGNORE := testdata/

GO_VERSION := go1.24.4
BUF_VERSION := v1.50.0
BUF_VERSION := v1.50.0 # Keep in sync w/ .github/workflows/buf.yaml.
LINT_VERSION := v2.1.6 # Keep in sync w/ .github/workflows/ci.yaml.

GOOS_HOST := $(shell go env GOOS)
Expand Down Expand Up @@ -152,10 +152,9 @@ checkgenerate:
@# Used in CI to verify that `make generate` doesn't produce a diff.
git --no-pager diff --exit-code >&2

internal/gen/*/*.pb.go: $(BIN)/buf internal/proto/*/*.proto internal/proto/*/*/*.proto
internal/gen/*/*.pb.go: $(BIN)/buf internal/proto/*/*/*.proto internal/proto/*/*/*/*.proto
$(BIN)/buf generate --clean
$(BIN)/buf generate --template buf.gen.vt.yaml \
--exclude-path internal/proto/test/proto2.proto,internal/proto/test/editions.proto # Work around a bug.
$(BIN)/buf generate --template buf.gen.vt.yaml

.PHONY: $(BIN)/hypertest
$(BIN)/hypertest: generate
Expand Down
Loading
Loading