feat: add proto check and make directives

Signed-off-by: Mike Nguyen <hey@mike.ee>
This commit is contained in:
Mike Nguyen 2024-11-25 15:33:55 +00:00
parent 4cfa9a3db2
commit 851abcae57
No known key found for this signature in database
GPG Key ID: ACED13988580D50E
2 changed files with 14 additions and 1 deletions

View File

@ -37,14 +37,20 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ env.PROTOC_VERSION }}
- uses: actions/checkout@v4
- name: Check compiled protos for a diff
run: |
make proto-gen check-diff-proto
- name: cargo fmt
run: cargo fmt -- --check --color ${{ env.CARGO_TERM_COLOR }}
- name: cargo clippy
run: cargo clippy
build:
name: Build on rust-${{ matrix.rust-version}}
name: Test and Build on rust-${{ matrix.rust-version}}
runs-on: ubuntu-latest
strategy:
fail-fast: false

7
Makefile Normal file
View File

@ -0,0 +1,7 @@
.PHONY: proto-gen
proto-gen:
cargo run --bin proto-gen
.PHONY: check-diff-proto
check-diff-proto:
git diff --exit-code ./proto/