-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96f267c
commit 54ad532
Showing
3 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Check generated grpc go files | ||
|
||
on: push | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Install protoc | ||
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler && protoc --version | ||
|
||
- name: Check gRPC generated files not manually changed | ||
shell: bash | ||
run: | | ||
make generate-module | ||
CHANGED=$(git diff --name-only ./src/main/proto/**/*.go | wc -l) | ||
if [ "${CHANGED}" -ne "0" ]; then | ||
git diff ./src/main/proto/**/*.go | ||
echo "Committed Protobuf files do not match the newly generated. Please, regenerate Protobuf and commit changes" | ||
exit 1 | ||
fi | ||
- name: Check sources | ||
run: make run-test | ||
- name: Build sources | ||
run: make build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module src/main/proto | ||
module github.com/th2-net/th2-grpc-common | ||
|
||
go 1.23.0 | ||
|
||
|