Add scripts for checking that graphql-codegen results in no changes
This commit is contained in:
parent
ce8cfd6a68
commit
9a2cae0c70
6
bin/assert-no-changes-wrapper.sh
Executable file
6
bin/assert-no-changes-wrapper.sh
Executable 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
10
bin/assert-no-changes.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user