-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.22 KB
/
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: buf
on:
pull_request:
branches: [master]
# Declare default permissions as read only.
permissions: read-all
jobs:
lint:
name: lint
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: bufbuild/buf-setup-action@9672cee01808979ea1249f81d6d321217b9a10f6 # v1.47.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: check formatting
working-directory: src/Vfps
run: buf format --exit-code
- uses: bufbuild/buf-lint-action@06f9dd823d873146471cfaaf108a993fe00e5325 # v1.1.1
with:
input: src/Vfps
# Doesn't currently work due to the weird file setup. Fails with:
# Error: Protos/vfps/api/v1/meta.proto: does not exist
# Error: Protos/vfps/api/v1/meta.proto: does not exist
# Error: google/api/http.proto: does not exist
# Error: buf found 3 breaking changes.
# - uses: bufbuild/buf-breaking-action@1cd949a5f7c5581990772f1e0c8a5270d7e4401b # tag=v1.1.1
# with:
# input: src/Vfps
# against: "https://github.com/${{ github.repository }}.git#branch=master"