Skip to content

Add GraphQL schema linting to CI#96

Merged
velo merged 3 commits intomainfrom
graphql-lint
Dec 3, 2025
Merged

Add GraphQL schema linting to CI#96
velo merged 3 commits intomainfrom
graphql-lint

Conversation

@velo
Copy link
Collaborator

@velo velo commented Dec 3, 2025

Summary

  • Add lint-graphql job to CI workflow that lints all .graphqls schema files
  • Uses graphql-schema-linter via Docker (node:18-slim)
  • Runs in parallel with existing build jobs

Linting rules:

  • fields-are-camel-cased
  • types-are-capitalized
  • enum-values-all-caps
  • input-object-values-are-camel-cased

Expected result

This PR is expected to fail the lint check because logistics-shipping-geodata/logistics.graphqls has 3 violations:

  • Query.Shipment should be shipment
  • Query.Vehicle should be vehicle
  • Query.Customer should be customer

Once confirmed, a follow-up commit will fix these issues.

velo added 2 commits December 3, 2025 13:55
Signed-off-by: Marvin Froeder <marvin@datasqrl.com>
Signed-off-by: Marvin Froeder <marvin@datasqrl.com>
@velo velo requested a review from ferenc-csaky December 3, 2025 17:00
Signed-off-by: Marvin Froeder <marvin@datasqrl.com>
@velo velo enabled auto-merge December 3, 2025 17:12
@velo velo merged commit 865d67c into main Dec 3, 2025
36 of 38 checks passed
@velo velo deleted the graphql-lint branch December 3, 2025 17:30
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.

2 participants