Skip to content

Commit af797bd

Browse files
committed
Run tests on hardhat fork
1 parent e330b35 commit af797bd

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,6 +63,17 @@ 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+
6677
- name: Start Anvil
6778
run: |
6879
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 &
@@ -83,17 +94,6 @@ jobs:
8394
echo "Error: Anvil did not start within the timeout period."
8495
exit 1
8596
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: Upgrade Test
94-
working-directory: packages/sharing-smart-contract
95-
run: npm run upgrade-local-fork -- --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)