From 24b6b8dab70a70c85bd6350b3f120701b7b0b7b6 Mon Sep 17 00:00:00 2001 From: Kezz Date: Thu, 25 Apr 2024 14:25:22 +0100 Subject: [PATCH] build: Setup schema validation action (#2) --- .github/workflows/check-schema.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/check-schema.yml 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