cargo {fmt,clippy} #12
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
on: [push, pull_request] | |
name: Check protobuf | |
jobs: | |
check: | |
name: Check protobuf definitions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: arduino/setup-protoc@v2 | |
- run: | | |
set -xeuo pipefail | |
./scripts/update_protos.sh | |
if git diff --exit-code; then | |
echo "Protobuf files in a inconsistent state" | |
echo "Run ./scripts/update_protos.sh and commit updates to git repo" | |
exit 1 | |
fi | |