enforce up-to-date graphQL schema

Change-Id: Ia5c48c65c5cc1000c2fcdac8fb2bfc5fe04fd0e6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/294402
Reviewed-by: James Butters <jbutters@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Ogata <aogata@instructure.com>
Product-Review: Aaron Ogata <aogata@instructure.com>
This commit is contained in:
Aaron Ogata 2022-06-21 10:01:35 -07:00
parent 9682abb563
commit a0f61a5c00
2 changed files with 17 additions and 0 deletions

View File

@ -21,6 +21,14 @@ if [ "$GERRIT_PROJECT" == "canvas-lms" ]; then
fi
fi
# always keep the graphQL schema up-to-date
rake graphql:schema RAILS_ENV=test
if ! git diff --exit-code ui/shared/apollo/fragmentTypes.json; then
message="ui/shared/apollo/fragmentTypes.json needs to be kept up-to-date. Run bundle exec rake graphql:schema and push the changes.\\n"
gergich comment "{\"path\":\"ui/shared/apollo/fragmentTypes.json\",\"position\":1,\"severity\":\"error\",\"message\":\"$message\"}"
fi
gergich capture custom:./build/gergich/xsslint:Gergich::XSSLint 'node script/xsslint.js'
gergich capture i18nliner 'rake i18n:check'
# purposely don't run under bundler; they shell out and use bundler as necessary

View File

@ -152,6 +152,9 @@
{
"name": "NotificationPolicy"
},
{
"name": "OutcomeAlignmentType"
},
{
"name": "OutcomeCalculationMethod"
},
@ -347,6 +350,9 @@
{
"name": "NotificationPolicy"
},
{
"name": "OutcomeAlignmentType"
},
{
"name": "OutcomeCalculationMethod"
},
@ -503,6 +509,9 @@
{
"name": "NotificationPolicy"
},
{
"name": "OutcomeAlignmentType"
},
{
"name": "OutcomeFriendlyDescriptionType"
},