Files
railbird-gql/bin/assert-no-changes.sh
Loewy 272e754510
Some checks failed
Tests / Tests (pull_request) Failing after 8s
fix ci by adding pip black install
2026-01-30 14:21:17 -08:00

20 lines
531 B
Bash
Executable File

#!/usr/bin/env bash
git ls-files | xargs md5sum > before.txt
yarn install
yarn graphql-codegen
prettier ./src --write
for proto in $(find ./rbproto -iname '*.proto'); do
name=$(basename "$proto" .proto)
protoc -I=./rbproto --python_out=./rbproto/python --pyi_out=./rbproto/python ./rbproto/shot.proto
yarn pbjs ./rbproto/shot.proto --ts ./rbproto/ts/shot.ts
done
pip install black >/dev/null 2>&1 || true
black rbproto/python
prettier ./rbproto --write
git ls-files | xargs md5sum > after.txt
diff before.txt after.txt