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 GH check to avoid backward incompatible schema changes #89

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/gqlCheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
workflow_call:
workflow_dispatch:

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: kamilkisiela/graphql-inspector@master
with:
name: Validate Block Filters
schema: 'main:serve/graph/schema/filter/block_filter.graphql'
rules: |
safeUnreachable
- uses: kamilkisiela/graphql-inspector@master
with:
name: Validate Transaction Filters
schema: 'main:serve/graph/schema/filter/transaction_filter.graphql'
rules: |
safeUnreachable
- uses: kamilkisiela/graphql-inspector@master
with:
name: Validate Block Types
schema: 'main:serve/graph/schema/types/block.graphql'
rules: |
safeUnreachable
- uses: kamilkisiela/graphql-inspector@master
with:
name: Validate Transaction Types
schema: 'main:serve/graph/schema/types/transaction.graphql'
rules: |
safeUnreachable
- uses: kamilkisiela/graphql-inspector@master
with:
name: Validate Queries
schema: 'main:serve/graph/schema/query.graphql'
rules: |
suppressRemovalOfDeprecatedField
safeUnreachable
- uses: kamilkisiela/graphql-inspector@master
with:
name: Validate Subscriptions
schema: 'main:serve/graph/schema/subscription.graphql'
rules: |
suppressRemovalOfDeprecatedField
safeUnreachable
- uses: kamilkisiela/graphql-inspector@master
with:
name: Validate Schema
schema: 'main:serve/graph/schema/schema.graphql'
4 changes: 4 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ jobs:
codegen:
name: Go Codegen
uses: ./.github/workflows/gen.yaml

grapqlcheck:
name: GraphQL Check
uses: ./.github/workflows/gqlCheck.yaml
Loading