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:
parent
9682abb563
commit
a0f61a5c00
|
@ -21,6 +21,14 @@ if [ "$GERRIT_PROJECT" == "canvas-lms" ]; then
|
||||||
fi
|
fi
|
||||||
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 custom:./build/gergich/xsslint:Gergich::XSSLint 'node script/xsslint.js'
|
||||||
gergich capture i18nliner 'rake i18n:check'
|
gergich capture i18nliner 'rake i18n:check'
|
||||||
# purposely don't run under bundler; they shell out and use bundler as necessary
|
# purposely don't run under bundler; they shell out and use bundler as necessary
|
||||||
|
|
|
@ -152,6 +152,9 @@
|
||||||
{
|
{
|
||||||
"name": "NotificationPolicy"
|
"name": "NotificationPolicy"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "OutcomeAlignmentType"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "OutcomeCalculationMethod"
|
"name": "OutcomeCalculationMethod"
|
||||||
},
|
},
|
||||||
|
@ -347,6 +350,9 @@
|
||||||
{
|
{
|
||||||
"name": "NotificationPolicy"
|
"name": "NotificationPolicy"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "OutcomeAlignmentType"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "OutcomeCalculationMethod"
|
"name": "OutcomeCalculationMethod"
|
||||||
},
|
},
|
||||||
|
@ -503,6 +509,9 @@
|
||||||
{
|
{
|
||||||
"name": "NotificationPolicy"
|
"name": "NotificationPolicy"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "OutcomeAlignmentType"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "OutcomeFriendlyDescriptionType"
|
"name": "OutcomeFriendlyDescriptionType"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue