From 5bd14cf6bcbe173bca550c126bce770ff3fd5220 Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Tue, 21 May 2024 16:57:58 -0600 Subject: [PATCH] Test checks rbproto for diff and prettier --- .gitea/workflows/tests.yaml | 2 +- bin/assert-no-changes.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml index 1285573..0943b0b 100644 --- a/.gitea/workflows/tests.yaml +++ b/.gitea/workflows/tests.yaml @@ -13,5 +13,5 @@ jobs: - uses: actions/checkout@v3 with: submodules: recursive - - name: graphql-codegen causes no changes + - name: codegen causes no changes run: ./bin/assert-no-changes-wrapper.sh diff --git a/bin/assert-no-changes.sh b/bin/assert-no-changes.sh index 2d7c473..252a644 100755 --- a/bin/assert-no-changes.sh +++ b/bin/assert-no-changes.sh @@ -4,6 +4,12 @@ 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 +prettier ./rbproto --write git ls-files | xargs md5sum > after.txt