diff --git a/.github/workflows/check-schema.yml b/.github/workflows/check-schema.yml new file mode 100644 index 0000000..918be16 --- /dev/null +++ b/.github/workflows/check-schema.yml @@ -0,0 +1,24 @@ +name: Check Schema + +on: + push: + branches: "**" + tags-ignore: ["**"] + pull_request: + +permissions: + checks: write + +jobs: + test: + name: Annotate Breaking Changes + runs-on: ubuntu-latest + if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}" + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: GraphQL Inspector + uses: kamilkisiela/graphql-inspector@master + with: + schema: 'main:schema.graphqls' + approve-label: breaking \ No newline at end of file