File tree Expand file tree Collapse file tree 3 files changed +64
-10
lines changed
Expand file tree Collapse file tree 3 files changed +64
-10
lines changed Original file line number Diff line number Diff line change 11name : Deploy Subgraph - on TheGraph Network
22
33on :
4- workflow_dispatch : # Triggered manually but we can also trigger with an release event
4+ workflow_dispatch : # Manual trigger
55 inputs :
6- environment :
7- description : ' Deployment environment (must match a GitHub Environment name) '
6+ network :
7+ description : ' Network '
88 required : true
9- default : staging
109 type : choice
1110 options :
12- - staging
13- - tmp
14- - prod
11+ - arbitrum-sepolia
12+ - arbitrum-one
1513
1614jobs :
15+ build-and-test :
16+ uses : ./.github/workflows/subgraph-ci.yml
17+ with :
18+ node-version : 20
1719 deploy :
18- runs-on :
19- group : Azure_runners
20- labels : [ self-hosted, Linux, X64 ]
20+ needs : build-and-test
21+ runs-on : ubuntu-latest
2122 # Associate the job with a GitHub Environment which has pre-defined variables and secrets.
2223 environment : ${{ github.event.inputs.environment }}
2324 steps :
Original file line number Diff line number Diff line change 1414 - prod
1515
1616jobs :
17+ build-and-test :
18+ uses : ./.github/workflows/subgraph-ci.yml
19+ with :
20+ node-version : 20
21+
1722 deploy :
23+ needs : build-and-test
1824 runs-on :
1925 group : Azure_runners
2026 labels : [ self-hosted, Linux, X64 ]
Original file line number Diff line number Diff line change 1+ name : Core Smart Contract - Default
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - ' *'
7+ paths :
8+ - ' packages/subgraph/**'
9+ workflow_call :
10+ inputs :
11+ node-version :
12+ description : Node.js version to use
13+ required : true
14+ type : number
15+
16+ concurrency :
17+ group : ${{ github.ref }}-subgraph-ci
18+ cancel-in-progress : true
19+
20+ jobs :
21+ build-and-test :
22+ runs-on : ubuntu-latest
23+ steps :
24+ - uses : actions/checkout@v4
25+ with :
26+ fetch-depth : 0
27+
28+ - uses : actions/setup-node@v4
29+ with :
30+ node-version : ${{ inputs.node-version }} # default is 20
31+ cache : ' npm'
32+ cache-dependency-path : ' packages/subgraph'
33+
34+ - name : Install dependencies
35+ working-directory : packages/subgraph
36+ run : npm ci
37+
38+ - name : Check Format
39+ working-directory : packages/subgraph
40+ run : npm run check-format
41+
42+ # TODO: fix test command
43+ # - name: Run unit tests
44+ # run: npm run test
45+
46+ - name : Build
47+ run : npm run build
You can’t perform that action at this time.
0 commit comments