Skip to content

Commit

Permalink
ci: add script to run test in fhevm-solidity
Browse files Browse the repository at this point in the history
  • Loading branch information
leventdem committed Sep 7, 2023
1 parent 907ca90 commit 988d52e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ endif
run_e2e_test:
@cd $(FHEVM_SOLIDITY_PATH) && ci/scripts/prepare_fhe_keys_for_e2e_test.sh $(CURDIR)/volumes/network-public-fhe-keys
@cd $(FHEVM_SOLIDITY_PATH) && npm ci
## Copy the run_tests.sh script directly in fhevm-solidity for the nxt version
@cp ./scripts/run_tests.sh $(FHEVM_SOLIDITY_PATH)/ci/scripts/
@cd $(FHEVM_SOLIDITY_PATH) && ci/scripts/run_tests.sh
@sleep 5

Expand Down
9 changes: 9 additions & 0 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

cp .env.example .env
docker exec -i evmosnodelocal0 faucet $(npx hardhat task:getEthereumAddress)
sleep 8
docker exec -i evmosnodelocal0 faucet $(npx hardhat accounts | grep 0x | sed -n '2p')
sleep 8
docker exec -i evmosnodelocal0 faucet $(npx hardhat accounts | grep 0x | sed -n '3p')
npm test

0 comments on commit 988d52e

Please sign in to comment.