-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.18 KB
/
introspect.yml
File metadata and controls
48 lines (39 loc) · 1.18 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
name: Introspection
on: [push]
env:
INTROSPECTING: "true"
jobs:
check:
name: Graphql Checking
runs-on: ubuntu-latest
steps:
- name: Auto-cancel redundant jobs
uses: technote-space/auto-cancel-redundant-job@v1
- name: Checkout the repo
uses: actions/checkout@v2
with:
submodules: true
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install rust toolchain
uses: actions-rs/toolchain@v1.0.7
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- run: yarn add graphql @graphql-inspector/cli
- name: Introspect schema
run: |
cargo run &
npx wait-on http-get://localhost:4000/ &&
yarn graphql-inspector introspect http://localhost:4000 --write schema.graphql &&
kill $!
- uses: kamilkisiela/graphql-inspector@master
if: ${{ !contains(github.ref, 'dependabot') }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
schema: "schema.graphql"
endpoint: "https://api.loop.page/"
annotations: true