Skip to content

Commit

Permalink
add ci-protobuf gha workflow (#13677)
Browse files Browse the repository at this point in the history
* 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
momentmaker authored Jun 25, 2024
1 parent ed6b9ad commit ec3eac5
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci-protobuf.yml
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
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# Services
/core/services/directrequest @smartcontractkit/keepers
/core/services/feeds @smartcontractkit/FMS
/core/services/synchronization/telem @smartcontractkit/realtime

# To be deprecated in Chainlink V3
/core/services/fluxmonitorv2 @smartcontractkit/foundations
Expand Down

0 comments on commit ec3eac5

Please sign in to comment.