[TH2-5181] Add rabbitmq connection and consumer recovery (#16) #48
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
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 |