Add scripts for checking that graphql-codegen results in no changes

This commit is contained in:
Ivan Malison 2024-02-20 19:17:43 -07:00
parent ce8cfd6a68
commit 9a2cae0c70
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
GQL_DIR=$(dirname $(dirname "$(realpath "$BASH_SOURCE")"))
cd $GQL_DIR
nix develop --impure --command bash "$GQL_DIR/bin/assert-no-changes.sh"

10
bin/assert-no-changes.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
git ls-files | xargs md5sum > before.txt
yarn install
yarn graphql-codegen
git ls-files | xargs md5sum > after.txt
diff before.txt after.txt