-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (57 loc) · 1.41 KB
/
check-index.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Check Subql
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-subql:
name: Check subql
runs-on: ubuntu-latest
strategy:
matrix:
project:
- name: apps
chain: darwinia
- name: bridger
chain: darwinia
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install deps
working-directory: subql
run: |
yarn install
yarn boot
yarn build:common
- name: Check subql
working-directory: subql
run: yarn build:${{ matrix.project.name }} -- ${{ matrix.project.chain }}
check-subgraph:
name: Check subgraph
runs-on: ubuntu-latest
strategy:
matrix:
project:
- name: ethv2
chain: darwinia
- name: feemarket
chain: ethereum
- name: feemarket
chain: darwinia
- name: ormpipe
chain: crab
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Check subgraph
run: |
cd thegraph
yarn install
cd packages/${{ matrix.project.name }}
yarn codegen -- subgraph-${{ matrix.project.chain }}.yaml
yarn build -- subgraph-${{ matrix.project.chain }}.yaml