-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 958 Bytes
/
buf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: protorepo/buf
on:
# Apply to all pull requests on the main branch
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
buf:
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
# Install the `buf` CLI
- name: Install buf CLI
uses: bufbuild/buf-setup-action@v1
# Check for breaking changes in the 'proto' directory on all pull requests
- name: Check for Buf breaking changes
uses: bufbuild/buf-breaking-action@v1
with:
input: proto
against: 'https://github.com/observerly/birpc.git#branch=main,ref=HEAD~1,subdir=proto'
# Check for lint errors in the 'proto' directory on all pull requests
- name: Check for Buf lint errors
uses: bufbuild/buf-lint-action@v1
with:
input: proto