Skip to content

Commit 7fe87f8

Browse files
committed
Disable temporarily
1 parent 50c6c98 commit 7fe87f8

File tree

1 file changed

+58
-58
lines changed

1 file changed

+58
-58
lines changed

.github/workflows/sharing-smart-contracts-reusable.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -54,61 +54,61 @@ jobs:
5454
working-directory: packages/sharing-smart-contract
5555
run: npm run uml
5656

57-
- name: Static Analyzer
58-
uses: crytic/[email protected]
59-
id: slither
60-
with:
61-
sarif: result.sarif
62-
fail-on: none
63-
target: 'packages/sharing-smart-contract/'
64-
65-
- name: Start Anvil
66-
run: |
67-
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 &
68-
69-
- name: Wait for Anvil to start
70-
run: |
71-
timeout=30
72-
interval=1
73-
echo "Waiting for Anvil to start..."
74-
for ((i=0; i<timeout; i++)); do
75-
if nc -z localhost 8545; then
76-
echo "Anvil is operational."
77-
exit 0
78-
fi
79-
echo "Attempt $((i+1)) of $timeout: Anvil is not ready, waiting ${interval}s..."
80-
sleep $interval
81-
done
82-
echo "Error: Anvil did not start within the timeout period."
83-
exit 1
84-
85-
- name: Upgrade test
86-
working-directory: packages/sharing-smart-contract
87-
run: npm run upgrade-local-fork -- --network local-bellecour-fork
88-
89-
# TODO check why the CI does not fail when the following error occurs
90-
# (when the RPC node is not available):
91-
# 1) Uncaught error outside test suite
92-
- name: Hardhat tests
93-
working-directory: packages/sharing-smart-contract
94-
run: npm run test -- --network local-bellecour-fork
95-
96-
- name: Test deployment script
97-
working-directory: packages/sharing-smart-contract
98-
run: |
99-
POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \
100-
DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \
101-
npm run deploy -- --network local-bellecour-fork
102-
103-
- name: Set Directory Permissions
104-
working-directory: packages/sharing-smart-contract
105-
run: sudo chmod -R 777 .
106-
107-
- name: Forge Tests
108-
working-directory: packages/sharing-smart-contract
109-
run: forge test --no-match-test "invariant" -vvvv
110-
111-
- name: Upload SARIF file
112-
uses: github/codeql-action/upload-sarif@v3
113-
with:
114-
sarif_file: ${{ steps.slither.outputs.sarif }}
57+
# - name: Static Analyzer
58+
# uses: crytic/[email protected]
59+
# id: slither
60+
# with:
61+
# sarif: result.sarif
62+
# fail-on: none
63+
# target: 'packages/sharing-smart-contract/'
64+
65+
# - name: Start Anvil
66+
# run: |
67+
# 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 &
68+
69+
# - name: Wait for Anvil to start
70+
# run: |
71+
# timeout=30
72+
# interval=1
73+
# echo "Waiting for Anvil to start..."
74+
# for ((i=0; i<timeout; i++)); do
75+
# if nc -z localhost 8545; then
76+
# echo "Anvil is operational."
77+
# exit 0
78+
# fi
79+
# echo "Attempt $((i+1)) of $timeout: Anvil is not ready, waiting ${interval}s..."
80+
# sleep $interval
81+
# done
82+
# echo "Error: Anvil did not start within the timeout period."
83+
# exit 1
84+
85+
# - name: Upgrade test
86+
# working-directory: packages/sharing-smart-contract
87+
# run: npm run upgrade-local-fork -- --network local-bellecour-fork
88+
89+
# # TODO check why the CI does not fail when the following error occurs
90+
# # (when the RPC node is not available):
91+
# # 1) Uncaught error outside test suite
92+
# - name: Hardhat tests
93+
# working-directory: packages/sharing-smart-contract
94+
# run: npm run test -- --network local-bellecour-fork
95+
96+
# - name: Test deployment script
97+
# working-directory: packages/sharing-smart-contract
98+
# run: |
99+
# POCO_ADDRESS=0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f \
100+
# DATASET_REGISTRY_ADDRESS=0x799DAa22654128d0C64d5b79eac9283008158730 \
101+
# npm run deploy -- --network local-bellecour-fork
102+
103+
# - name: Set Directory Permissions
104+
# working-directory: packages/sharing-smart-contract
105+
# run: sudo chmod -R 777 .
106+
107+
# - name: Forge Tests
108+
# working-directory: packages/sharing-smart-contract
109+
# run: forge test --no-match-test "invariant" -vvvv
110+
111+
# - name: Upload SARIF file
112+
# uses: github/codeql-action/upload-sarif@v3
113+
# with:
114+
# sarif_file: ${{ steps.slither.outputs.sarif }}

0 commit comments

Comments
 (0)