Update Backup.proto (no test changes) #13
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
generate_and_compare: | |
name: Generate and compare .binprotos | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt-get update && sudo apt-get install protobuf-compiler | |
- run: rustup toolchain install stable | |
- name: Generate `.binproto`s for all `.jsonproto`s | |
run: ${PWD}/scripts/generate-binprotos.sh | |
- name: Compare generated `.binproto`s | |
run: | | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "Files changed after generating .binprotos!" | |
exit 1 | |
fi |