-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 965 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Schema Checks
on:
workflow_dispatch:
pull_request:
jobs:
schema-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
docker-compose up -d
pushd retail
npm i
npx -y grafbase introspect --dev > ../retail.graphql
popd
pushd manufacturing
npm i
npx -y grafbase introspect --dev > ../manufacturing.graphql
popd
- uses: grafbase/schema-check-action@v1
with:
grafbase-access-token: ${{ secrets.GRAFBASE_ACCESS_TOKEN }}
project-ref: tomhoule/schema-check-action-federated-graph-example@main
schema-path: ./retail.graphql
- uses: grafbase/schema-check-action@v1
with:
grafbase-access-token: ${{ secrets.GRAFBASE_ACCESS_TOKEN }}
project-ref: tomhoule/schema-check-action-federated-graph-example@main
schema-path: ./manufacturing.graphql