Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lint-graphql job #55

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add lint-graphql job #55

wants to merge 1 commit into from

Conversation

ccamel
Copy link
Member

@ccamel ccamel commented Aug 25, 2023

Addresses issue #6 by integrating the actions/graphql-inspector GitHub action into the CI.

screenshot

To be tested in more depth with future PRs that amend the schema.

@ccamel ccamel self-assigned this Aug 25, 2023
@ccamel ccamel force-pushed the ci/graphql-inspector branch 4 times, most recently from 245e328 to aa792ef Compare August 25, 2023 09:15
@ccamel ccamel marked this pull request as ready for review August 25, 2023 09:22
@ccamel
Copy link
Member Author

ccamel commented Sep 4, 2023

No longer works because the evaluated schema is incomplete (e.g. the BigInt scalar is not defined). Another approach must be considered. 😭

@ccamel ccamel marked this pull request as draft September 4, 2023 13:05
@ccamel
Copy link
Member Author

ccamel commented Sep 4, 2023

AFIK, it doesn't seem possible to extract the complete GraphQL schema directly from the subql cli. Then, the safest approach would be to do the following: as part of the CI workflow execution, start two instances of SubQL, one on the main branch and another on the PR branch. Then use the actions/graphql-inspector to perform the diff between the two, resolving their respective GraphQL endpoints. A bit cumbersome, but safer, I guess.

FYI @amimart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants