-
Notifications
You must be signed in to change notification settings - Fork 49
37 lines (35 loc) · 959 Bytes
/
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
# Protobuf files lint and backwards compatibility check job
# reference: <https://docs.buf.build/ci-cd/github-actions>
name: protobuf-check
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
protobuf-check:
strategy:
matrix:
go-version: [1.20.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/[email protected]
- run: buf format --diff --exit-code
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Test protobuf changes generates new go files
run: |
export PATH="$PATH:$(go env GOPATH)/bin"
go mod tidy
make tools proto-gen-check
- name: Test protobuf swagger changes
run: |
export PATH="$PATH:$(go env GOPATH)/bin"
make tools proto-swagger-check