Skip to content

Commit

Permalink
Fix proto Makefile (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Feb 14, 2023
1 parent f5e7c1a commit 161f882
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,19 @@ jobs:
with:
args: -p bugs -p unused --timeout=3m

- name: break if proto modifications where not committed
run: |
make proto
- name: Check if there are changes
uses: UnicornGlobal/has-changes-action@v1.0.12
- name: Process changes
if: steps.changes.outputs.changed == 1
run: echo "Changes exist"

- name: build and test
run: |
make test
make bench
make
- name: Publish Codecoverage report
run: bash <(curl -s https://codecov.io/bash)

Expand Down
6 changes: 3 additions & 3 deletions proto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ _buf:

.PHONY: protolint
protolint:
@$(MAKE) buf CMD="format -w api/v1"
@$(MAKE) buf CMD="lint -v"
@$(MAKE) _buf CMD="format -w api/v1"
@$(MAKE) _buf CMD="lint -v"

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

0 comments on commit 161f882

Please sign in to comment.