-
Notifications
You must be signed in to change notification settings - Fork 261
Expand file tree
/
Copy pathcall.check-query-schema-against-subgraph.yml
More file actions
49 lines (37 loc) · 1.34 KB
/
call.check-query-schema-against-subgraph.yml
File metadata and controls
49 lines (37 loc) · 1.34 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
49
name: Reusable Workflow | Check SDK-Core Schema Against Deployed Subgraphs
on:
workflow_call:
inputs:
subgraph-release:
required: true
type: string
jobs:
check-subgraph-indexing-statuses-on-deployed-networks:
name: Check SDK-Core Schema Against Deployed Subgraphs (${{ inputs.subgraph-release }})
runs-on: ubuntu-22.04
env:
sdk-core-working-directory: ./packages/sdk-core
defaults:
run:
shell: nix develop .#ci-default -c bash -xe {0}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v13
- name: "Install dependencies"
run: yarn install --frozen-lockfile
- name: "Build contracts"
run: yarn build
working-directory: ./packages/ethereum-contracts
- name: "Build SDK-Core"
run: yarn build
working-directory: ${{ env.sdk-core-working-directory }}
- name: Get Hosted Service Networks from metadata
run: npx ts-node ./scripts/getHostedServiceNetworks.ts
working-directory: ./packages/subgraph
- name: Run schema check
run: |
./tasks/setupTestEnvironment.sh
./tasks/testSchemasAndQueries.sh
working-directory: ${{ env.sdk-core-working-directory }}
env:
SUBGRAPH_RELEASE_TAG: ${{ inputs.subgraph-release }}