ci: only run when applicable (#4752)

- only run tests when .go, .mod, .sum files have been touched
- only run proto checks when .proto files have been touched

Signed-off-by: Marko Baricevic marbar3778@yahoo.com
This commit is contained in:
Marko
2020-04-28 16:07:11 +02:00
committed by GitHub
parent be42442e10
commit 7a87a784bf
2 changed files with 40 additions and 5 deletions
+8 -1
View File
@@ -5,8 +5,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: docker-practice/actions-setup-docker@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: lint
run: make proto-lint
if: "env.GIT_DIFF != ''"
- name: check-breakage
run: make proto-check-breaking-ci
if: "env.GIT_DIFF != ''"