-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 936 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Check library state
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 prepare-grpc-module
CHANGED=$(git diff --name-only ./pkg/common/grpc/**/*.go | wc -l)
if [ "${CHANGED}" -ne "0" ]; then
git diff ./pkg/common/grpc/**/*.go
echo "Committed Protobuf files do not match the newly generated. Please, regenerate Protobuf and commit changes"
exit 1
fi
- name: Build sources
run: make build
- name: Check sources
run: make run-test