@@ -29,27 +29,27 @@ jobs:
2929 working-directory : packages/sharing-smart-contract
3030 run : npm ci
3131
32- - name : Install Foundry
33- uses : foundry-rs/foundry-toolchain@v1
34- with :
35- version : stable
36- cache : true
32+ # - name: Install Foundry
33+ # uses: foundry-rs/foundry-toolchain@v1
34+ # with:
35+ # version: stable
36+ # cache: true
3737
38- - name : Compile
39- working-directory : packages/sharing-smart-contract
40- run : npm run compile
38+ # - name: Compile
39+ # working-directory: packages/sharing-smart-contract
40+ # run: npm run compile
4141
42- - name : Check Format
43- working-directory : packages/sharing-smart-contract
44- run : npm run check-format
42+ # - name: Check Format
43+ # working-directory: packages/sharing-smart-contract
44+ # run: npm run check-format
4545
46- - name : Lint
47- working-directory : packages/sharing-smart-contract
48- run : npm run lint
46+ # - name: Lint
47+ # working-directory: packages/sharing-smart-contract
48+ # run: npm run lint
4949
50- - name : UML Diagrams
51- working-directory : packages/sharing-smart-contract
52- run : npm run uml
50+ # - name: UML Diagrams
51+ # working-directory: packages/sharing-smart-contract
52+ # run: npm run uml
5353
5454 - name : Static Analyzer
5555@@ -59,51 +59,51 @@ jobs:
5959 fail-on : none
6060 target : ' packages/sharing-smart-contract/'
6161
62- - name : Start Anvil
63- run : |
64- 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 &
65-
66- - name : Wait for Anvil to start
67- run : |
68- timeout=30
69- interval=1
70- echo "Waiting for Anvil to start..."
71- for ((i=0; i<timeout; i++)); do
72- if nc -z localhost 8545; then
73- echo "Anvil is operational."
74- exit 0
75- fi
76- echo "Attempt $((i+1)) of $timeout: Anvil is not ready, waiting ${interval}s..."
77- sleep $interval
78- done
79- echo "Error: Anvil did not start within the timeout period."
80- exit 1
81-
82- - name : Upgrade test
83- working-directory : packages/sharing-smart-contract
84- run : npm run upgrade-local-fork -- --network local-bellecour-fork
85-
86- # TODO check why the CI does not fail when the following error occurs
87- # (when the RPC node is not available):
88- # 1) Uncaught error outside test suite
89- - name : Hardhat tests
90- working-directory : packages/sharing-smart-contract
91- run : npm run test -- --network local-bellecour-fork
92-
93- - name : Test deployment script
94- working-directory : packages/sharing-smart-contract
95- run : |
96- POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \
97- DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \
98- npm run deploy -- --network local-bellecour-fork
99-
100- - name : Set Directory Permissions
101- working-directory : packages/sharing-smart-contract
102- run : sudo chmod -R 777 .
103-
104- - name : Forge Tests
105- working-directory : packages/sharing-smart-contract
106- run : forge test --no-match-test "invariant" -vvvv
62+ # - name: Start Anvil
63+ # run: |
64+ # 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 &
65+
66+ # - name: Wait for Anvil to start
67+ # run: |
68+ # timeout=30
69+ # interval=1
70+ # echo "Waiting for Anvil to start..."
71+ # for ((i=0; i<timeout; i++)); do
72+ # if nc -z localhost 8545; then
73+ # echo "Anvil is operational."
74+ # exit 0
75+ # fi
76+ # echo "Attempt $((i+1)) of $timeout: Anvil is not ready, waiting ${interval}s..."
77+ # sleep $interval
78+ # done
79+ # echo "Error: Anvil did not start within the timeout period."
80+ # exit 1
81+
82+ # - name: Upgrade test
83+ # working-directory: packages/sharing-smart-contract
84+ # run: npm run upgrade-local-fork -- --network local-bellecour-fork
85+
86+ # # TODO check why the CI does not fail when the following error occurs
87+ # # (when the RPC node is not available):
88+ # # 1) Uncaught error outside test suite
89+ # - name: Hardhat tests
90+ # working-directory: packages/sharing-smart-contract
91+ # run: npm run test -- --network local-bellecour-fork
92+
93+ # - name: Test deployment script
94+ # working-directory: packages/sharing-smart-contract
95+ # run: |
96+ # POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \
97+ # DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \
98+ # npm run deploy -- --network local-bellecour-fork
99+
100+ # - name: Set Directory Permissions
101+ # working-directory: packages/sharing-smart-contract
102+ # run: sudo chmod -R 777 .
103+
104+ # - name: Forge Tests
105+ # working-directory: packages/sharing-smart-contract
106+ # run: forge test --no-match-test "invariant" -vvvv
107107
108108 - name : Upload SARIF file
109109 uses : github/codeql-action/upload-sarif@v3
0 commit comments