github.com/shippio/gqlgen@v0.0.0-20220912092219-633ea699ef07/.github/workflows/check-integration (about) 1 #!/bin/bash 2 3 set -euo pipefail 4 5 cd integration 6 7 date 8 go run ./server/server.go & 9 10 sleep 5 11 curl -s --connect-timeout 5 \ 12 --max-time 10 \ 13 --retry 5 \ 14 --retry-delay 5 \ 15 --retry-max-time 40 \ 16 --retry-connrefused \ 17 localhost:8080 > /dev/null 18 19 echo "### running jest integration spec" 20 ./node_modules/.bin/jest --color 21 22 23 echo "### validating introspected schema" 24 ./node_modules/.bin/graphql-codegen 25 26 if ! diff <(tail -n +3 schema-expected.graphql) <(tail -n +3 schema-fetched.graphql) ; then 27 echo "The expected schema has changed, you need to update schema-expected.graphql with any expected changes" 28 exit 1 29 fi