-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ci-protobuf gha workflow (#13677)
* add ci-protobuf gha workflow * fetch-depth: 0 checkout * add env REPO_URL and BASE_BRANCH * use https * use buf actions * add github_token to action and change .proto file for test * fix codeowner bug * fix * add more explicit *.proto files * move catch-all foundations owner * another try * revert back to original * revert test
- Loading branch information
1 parent
ed6b9ad
commit ec3eac5
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI ProtoBuf | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
buf-breaking: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
|
||
- name: Setup buf | ||
uses: bufbuild/buf-setup-action@35c243d7f2a909b1d4e40399b348a7fdab27d78d # v1.34.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run buf breaking | ||
uses: bufbuild/buf-breaking-action@c57b3d842a5c3f3b454756ef65305a50a587c5ba # v1.1.4 | ||
env: | ||
REPO_URL: https://github.com/${{ github.repository }} | ||
BASE_BRANCH: ${{ github.base_ref }} | ||
with: | ||
against: "${REPO_URL}.git#branch=${BASE_BRANCH}" | ||
|
||
- name: Collect Metrics | ||
if: always() | ||
id: collect-gha-metrics | ||
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1 | ||
with: | ||
id: ci-protobuf | ||
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | ||
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | ||
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }} | ||
this-job-name: buf-breaking | ||
continue-on-error: true |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters