Skip to content

Commit 161f882

Browse files
authored
Fix proto Makefile (#101)
1 parent f5e7c1a commit 161f882

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,19 @@ jobs:
3535
with:
3636
args: -p bugs -p unused --timeout=3m
3737

38+
- name: break if proto modifications where not committed
39+
run: |
40+
make proto
41+
- name: Check if there are changes
42+
uses: UnicornGlobal/has-changes-action@v1.0.12
43+
- name: Process changes
44+
if: steps.changes.outputs.changed == 1
45+
run: echo "Changes exist"
46+
3847
- name: build and test
3948
run: |
40-
make test
41-
make bench
42-
49+
make
50+
4351
- name: Publish Codecoverage report
4452
run: bash <(curl -s https://codecov.io/bash)
4553

proto/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ _buf:
1212

1313
.PHONY: protolint
1414
protolint:
15-
@$(MAKE) buf CMD="format -w api/v1"
16-
@$(MAKE) buf CMD="lint -v"
15+
@$(MAKE) _buf CMD="format -w api/v1"
16+
@$(MAKE) _buf CMD="lint -v"
1717

1818
.PHONY: protoc
1919
protoc: protolint
20-
@$(MAKE) buf CMD="generate -v"
20+
@$(MAKE) _buf CMD="generate -v"

0 commit comments

Comments
 (0)