2121
2222 - name : Install Dependencies
2323 working-directory : packages/sharing-smart-contract
24+ shell : bash
2425 run : |
2526 node -v
2627 npm -v
@@ -34,18 +35,22 @@ runs:
3435
3536 - name : Compile
3637 working-directory : packages/sharing-smart-contract
38+ shell : bash
3739 run : npm run compile
3840
3941 - name : Check Format
4042 working-directory : packages/sharing-smart-contract
43+ shell : bash
4144 run : npm run check-format
4245
4346 - name : Lint
4447 working-directory : packages/sharing-smart-contract
48+ shell : bash
4549 run : npm run lint
4650
4751 - name : UML Diagrams
4852 working-directory : packages/sharing-smart-contract
53+ shell : bash
4954 run : npm run uml
5055
5156 - name : Static Analyzer
@@ -57,10 +62,12 @@ runs:
5762 target : ' packages/sharing-smart-contract/'
5863
5964 - name : Start Anvil
65+ shell : bash
6066 run : |
6167 anvil --host 0.0.0.0 --port 8545 --hardfork berlin --fork-url https://bellecour.iex.ec --chain-id 134 --gas-limit 6700000 --gas-price 0 &
6268
6369 - name : Wait for Anvil to start
70+ shell : bash
6471 run : |
6572 timeout=30
6673 interval=1
@@ -78,28 +85,33 @@ runs:
7885
7986 - name : Upgrade test
8087 working-directory : packages/sharing-smart-contract
88+ shell : bash
8189 run : npm run upgrade-local-fork -- --network local-bellecour-fork
8290
8391 # TODO check why the CI does not fail when the following error occurs
8492 # (when the RPC node is not available):
8593 # 1) Uncaught error outside test suite
8694 - name : Hardhat tests
8795 working-directory : packages/sharing-smart-contract
96+ shell : bash
8897 run : npm run test -- --network local-bellecour-fork
8998
9099 - name : Test deployment script
91100 working-directory : packages/sharing-smart-contract
101+ shell : bash
92102 run : |
93103 POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \
94104 DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \
95105 npm run deploy -- --network local-bellecour-fork
96106
97107 - name : Set Directory Permissions
98108 working-directory : packages/sharing-smart-contract
109+ shell : bash
99110 run : sudo chmod -R 777 .
100111
101112 - name : Forge Tests
102113 working-directory : packages/sharing-smart-contract
114+ shell : bash
103115 run : forge test --no-match-test "invariant" -vvvv
104116
105117 - name : Upload SARIF file
0 commit comments