Split proto CI into lint and breakage checks (#6098)

* Split proto CI into lint and breakage checks

* Change names
This commit is contained in:
Aaron Craelius 2020-04-29 14:17:18 -04:00 committed by GitHub
parent 3b71198b25
commit dc1a21a08a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,7 @@
name: Proto check name: Protobuf
on: [pull_request] on: [pull_request]
jobs: jobs:
proto-checks: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
@ -14,6 +14,16 @@ jobs:
- name: lint - name: lint
run: make proto-lint-docker run: make proto-lint-docker
if: "env.GIT_DIFF != ''" 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 - name: check-breakage
run: make proto-check-breaking-docker run: make proto-check-breaking-docker
if: "env.GIT_DIFF != ''" if: "env.GIT_DIFF != ''"