Skip to content

Commit

Permalink
Add CI job to check graphql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavlrsn committed Jan 20, 2025
1 parent 9a5725f commit 4102595
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,31 @@ jobs:

- run: npm run langs:check

graphql-update-check:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup project
uses: ./.github/actions/setup-project
with:
CACHE_VERSION: ${{ secrets.CACHE_VERSION }}

- name: Run GraphQL update
run: |
npm run graphql:update || { echo "Error: graphql:update script failed."; exit 1; }
- name: Check for schema changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Error: GraphQL schema is not up to date. Please update the schema and commit changes." && exit 1
else
echo "GraphQL schema is up to date."
fi
build:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 4102595

Please sign in to comment.