Skip to content

Commit c295882

Browse files
committed
ci: add buf lint workflow
Runs `buf lint` on every pull_request and master push. Uses the official bufbuild/buf-setup-action with the GITHUB_TOKEN to avoid GitHub API rate limits during buf installation.
1 parent cc0afc5 commit c295882

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/buf-lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Buf Lint'
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
lint:
11+
name: 'buf lint'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Set up buf
18+
uses: bufbuild/buf-setup-action@v1
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Lint protofiles
23+
run: buf lint

0 commit comments

Comments
 (0)