github.com/humans-group/gqlgen@v0.7.2/.circleci/integration.sh (about) 1 #!/bin/bash 2 3 set -eu 4 5 echo "### running jest integration spec" 6 ./node_modules/.bin/jest --color 7 8 9 echo "### validating introspected schema" 10 ./node_modules/.bin/graphql get-schema 11 12 if ! diff <(tail -n +3 schema-expected.graphql) <(tail -n +3 schema-fetched.graphql) ; then 13 echo "The expected schema has changed, you need to update schema-expected.graphql with any expected changes" 14 exit 1 15 fi 16 17