Skip to content

Commit 2760952

Browse files
committed
Debug upgrade tests on CI
1 parent af797bd commit 2760952

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/sharing-smart-contract-test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,6 @@ jobs:
6363
fail-on: none
6464
target: 'packages/sharing-smart-contract/'
6565

66-
# TODO check why the CI does not fail when the following error occurs
67-
# (when the RPC node is not available):
68-
# 1) Uncaught error outside test suite
69-
- name: Hardhat tests
70-
working-directory: packages/sharing-smart-contract
71-
run: npm run test # Runs on local hardhat fork.
72-
73-
- name: Upgrade test
74-
working-directory: packages/sharing-smart-contract
75-
run: npm run upgrade-local-fork
76-
7766
- name: Start Anvil
7867
run: |
7968
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 &
@@ -94,6 +83,17 @@ jobs:
9483
echo "Error: Anvil did not start within the timeout period."
9584
exit 1
9685
86+
- name: Upgrade test
87+
working-directory: packages/sharing-smart-contract
88+
run: npm run upgrade-local-fork -- --network local-bellecour-fork
89+
90+
# TODO check why the CI does not fail when the following error occurs
91+
# (when the RPC node is not available):
92+
# 1) Uncaught error outside test suite
93+
- name: Hardhat tests
94+
working-directory: packages/sharing-smart-contract
95+
run: npm run test -- --network local-bellecour-fork
96+
9797
- name: Set Directory Permissions
9898
working-directory: packages/sharing-smart-contract
9999
run: sudo chmod -R 777 .

0 commit comments

Comments
 (0)