File tree Expand file tree Collapse file tree 7 files changed +2728
-3448
lines changed
Expand file tree Collapse file tree 7 files changed +2728
-3448
lines changed Original file line number Diff line number Diff line change 1111 options :
1212 - arbitrum-goerli
1313 - arbitrum
14+ update :
15+ description : Whether to update the subgraph with the current artifacts for the selected network.
16+ required : true
17+ default : true
18+ type : boolean
1419
1520permissions :
1621 contents : read
@@ -33,16 +38,38 @@ jobs:
3338 with :
3439 node-version : 16
3540
41+ - name : Install Yarn if running locally
42+ if : ${{ env.ACT }}
43+ run : npm install -g yarn
44+
3645 - name : Install the dependencies
3746 run : yarn install
3847
48+ - name : Install jq and yq
49+ if : ${{ inputs.update }}
50+ run : |
51+ mkdir bin
52+ wget -qO bin/jq https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64
53+ wget -qO bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
54+ chmod a+x bin/jq bin/yq
55+
56+ - name : Update the subgraph definition
57+ if : ${{ inputs.update }}
58+ run : |
59+ export PATH=$PWD/../bin:$PATH
60+ yarn update:${{ inputs.network }}
61+ working-directory : subgraph
62+
3963 - name : Build the subgraph
4064 run : |
4165 yarn codegen
4266 yarn build
43-
67+ working-directory : subgraph
68+
4469 - name : Authenticate with TheGraph
4570 run : yarn graph auth "${{ secrets.SUBGRAPH_AUTH_TOKEN }}" --product hosted-service
71+ working-directory : subgraph
4672
4773 - name : Deploy the subgraph
4874 run : yarn deploy:${{ inputs.network }}
75+ working-directory : subgraph
Original file line number Diff line number Diff line change 8484
8585 # Upload the results to GitHub's code scanning dashboard.
8686 - name : " Upload to code-scanning"
87- uses : github/codeql-action/upload-sarif@807578363a7869ca324a79039e6db9c843e0e100 # v2.1.27
87+ uses : github/codeql-action/upload-sarif@6c089f53dd51dc3fc7e599c3cb5356453a52ca9e # v2.20.0
8888 with :
8989 sarif_file : results.sarif
Original file line number Diff line number Diff line change 4141 "@nomicfoundation/hardhat-chai-matchers" : " ^1.0.6" ,
4242 "@nomiclabs/hardhat-ethers" : " ^2.2.3" ,
4343 "@nomiclabs/hardhat-solhint" : " ^3.0.1" ,
44- "@openzeppelin/contracts" : " ^4.9.1 " ,
44+ "@openzeppelin/contracts" : " ^4.9.2 " ,
4545 "@typechain/ethers-v5" : " ^11.0.0" ,
4646 "@typechain/hardhat" : " ^7.0.0" ,
4747 "@types/chai" : " ^4.3.5" ,
4848 "@types/mocha" : " ^10.0.1" ,
4949 "@types/node" : " ^16.18.36" ,
5050 "chai" : " ^4.3.7" ,
51- "dotenv" : " ^16.1.4 " ,
51+ "dotenv" : " ^16.3.1 " ,
5252 "ethereumjs-util" : " ^7.1.5" ,
5353 "ethers" : " ^5.7.2" ,
5454 "hardhat" : " ^2.15.0" ,
5555 "hardhat-contract-sizer" : " ^2.10.0" ,
56- "hardhat-deploy" : " ^0.11.30 " ,
56+ "hardhat-deploy" : " ^0.11.31 " ,
5757 "hardhat-deploy-ethers" : " ^0.4.0-next.1" ,
5858 "hardhat-deploy-tenderly" : " ^0.2.0" ,
5959 "hardhat-docgen" : " ^1.3.0" ,
Original file line number Diff line number Diff line change 44 "main" : " index.js" ,
55 "license" : " MIT" ,
66 "dependencies" : {
7- "eslint" : " ^8.42 .0" ,
7+ "eslint" : " ^8.43 .0" ,
88 "prettier" : " ^2.8.8" ,
99 "prettier-plugin-solidity" : " ^1.1.3"
1010 },
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ act workflow_dispatch -j buildAndDeploy --input network=arbitrum-goerli,update=true
Original file line number Diff line number Diff line change @@ -11,10 +11,22 @@ function require() #cmd
1111 fi
1212}
1313
14+ # for the NPM and toolchain version management
15+ require volta
16+
17+ # for the local subgraph node
1418require docker
1519require docker-compose
20+
21+ # for some contracts utilities
22+ require cast
23+ require forge
24+
25+ # for the subgraph and contracts utilities
1626require jq
1727require yq
18- require volta
28+
29+ # for the local testing of Github Actions
30+ require act
1931
2032exit $status
You can’t perform that action at this time.
0 commit comments