From dc1a21a08adb378c8827093cfc6b9ef7a3ee7719 Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Wed, 29 Apr 2020 14:17:18 -0400 Subject: [PATCH] Split proto CI into lint and breakage checks (#6098) * Split proto CI into lint and breakage checks * Change names --- .github/workflows/proto.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/proto.yml b/.github/workflows/proto.yml index 5794ae0b59..403cbc4bd7 100644 --- a/.github/workflows/proto.yml +++ b/.github/workflows/proto.yml @@ -1,7 +1,7 @@ -name: Proto check +name: Protobuf on: [pull_request] jobs: - proto-checks: + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@master @@ -14,6 +14,16 @@ jobs: - name: lint run: make proto-lint-docker if: "env.GIT_DIFF != ''" + breakage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: technote-space/get-diff-action@v1 + id: git_diff + with: + SUFFIX_FILTER: .proto + SET_ENV_NAME_INSERTIONS: 1 + SET_ENV_NAME_LINES: 1 - name: check-breakage run: make proto-check-breaking-docker if: "env.GIT_DIFF != ''"