Skip to content

Commit e36b1b3

Browse files
authoredFeb 8, 2022
614 proto binding support with buf build (#630)
* initial attemp at using buf.build * buf.build stuff * buf workflow * trigger on PR for testing * fix breaking for third_party * use existing workflow * updated proto steps * changelog entry * fix bug with proto-all * update proto script and protos * update proto-all task * fix typo * fix bug with proto binding release version & combine workflows * add protoBinding build step to release.yml workflow * missed in git add on last commit * fix lint errors
1 parent 4d5445d commit e36b1b3

File tree

155 files changed

+9468
-1606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+9468
-1606
lines changed
 

‎.github/workflows/build-and-publish-proto-bindings.yml

-43
This file was deleted.

‎.github/workflows/proto.yml

+22-20
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,30 @@ on:
55
pull_request:
66
paths:
77
- "**/**.proto"
8-
98
jobs:
10-
lint:
9+
buf_push:
1110
runs-on: ubuntu-latest
12-
timeout-minutes: 5
1311
steps:
14-
- uses: actions/checkout@master
15-
- uses: technote-space/get-diff-action@v6.0.1
12+
- uses: actions/checkout@v2
13+
- uses: bufbuild/buf-setup-action@v0.6.0
14+
- uses: bufbuild/buf-lint-action@v1
1615
with:
17-
PATTERNS: |
18-
**/**.proto
19-
- name: lint
20-
run: make proto-lint
21-
if: env.GIT_DIFF
22-
breakage:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@master
26-
- uses: technote-space/get-diff-action@v6.0.1
16+
input: 'proto'
17+
- uses: bufbuild/buf-breaking-action@v1
18+
with:
19+
input: 'proto'
20+
# The 'main' branch of the GitHub repository that defines the module.
21+
against: 'https://github.com/provenance-io/provenance.git#branch=main'
22+
- uses: bufbuild/buf-breaking-action@v1
23+
with:
24+
input: 'third_party/proto'
25+
# The 'main' branch of the GitHub repository that defines the module.
26+
against: 'buf.build/provenance-io/third-party'
27+
- uses: bufbuild/buf-push-action@v1
28+
with:
29+
input: 'proto'
30+
buf_token: ${{ secrets.BUF_TOKEN }}
31+
- uses: bufbuild/buf-push-action@v1
2732
with:
28-
PATTERNS: |
29-
**/**.proto
30-
- name: check-breakage
31-
run: make proto-check-breaking
32-
if: env.GIT_DIFF
33+
input: 'third_party/proto'
34+
buf_token: ${{ secrets.BUF_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.