From ec3eac5ff1d2befc58c369cdab281562ae3784d7 Mon Sep 17 00:00:00 2001 From: frank zhu Date: Tue, 25 Jun 2024 13:12:29 -0500 Subject: [PATCH] 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 --- .github/workflows/ci-protobuf.yml | 36 +++++++++++++++++++++++++++++++ CODEOWNERS | 1 + 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/ci-protobuf.yml diff --git a/.github/workflows/ci-protobuf.yml b/.github/workflows/ci-protobuf.yml new file mode 100644 index 00000000000..d832939ded9 --- /dev/null +++ b/.github/workflows/ci-protobuf.yml @@ -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 diff --git a/CODEOWNERS b/CODEOWNERS index 8741cb7a685..5b80a90b27a 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -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