-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (41 loc) · 1.15 KB
/
buf.yml
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
40
41
42
43
44
45
name: Buf lint
on:
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download buf
uses: dsaltares/[email protected]
with:
repo: 'bufbuild/buf'
version: 'tags/v1.48.0'
file: 'buf-Linux-x86_64'
target: 'buf-Linux-x86_64'
- run: chmod 755 ./buf-Linux-x86_64
- run: ./buf-Linux-x86_64 lint
breaking:
runs-on: ubuntu-latest
steps:
- name: Download buf
uses: dsaltares/[email protected]
with:
repo: 'bufbuild/buf'
version: 'tags/v1.48.0'
file: 'buf-Linux-x86_64'
target: 'buf-Linux-x86_64'
- run: chmod 755 ./buf-Linux-x86_64
- name: Check out ref code
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: baseref
- run: cd baseref && buf image build -o image.bin
- name: Check out code
uses: actions/checkout@v4
with:
path: prclone
- run: cd prclone && ../buf-Linux-x86_64 breaking --against ../baseref/image.bin