Skip to content

Commit

Permalink
Switch to external hardhat-node
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Dec 4, 2023
1 parent fbe36d2 commit 8ac2857
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@ jobs:
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install codecov
- name: Lint with flake8
run: flake8 .

- name: Mypy check
run: mypy transaction_manager

- name: Launch hardhat node
working-directory: hardhat-node
run: |
docker-compose up -d
- name: Run test containers
run: ./scripts/run-test-containers.sh && sleep 60

Expand Down
8 changes: 7 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[submodule "helper-scripts"]
path = helper-scripts
url = https://github.com/skalenetwork/helper-scripts.git
branch = develop
branch = develop

[submodule "hardhat-node"]
path = hardhat-node
url = https://github.com/skalenetwork/hardhat-node.git
branch = develop

6 changes: 3 additions & 3 deletions scripts/run-test-containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ cleanup_skale_dir
cleanup_redis_dir
create_skale_dir
create_redis_dir
build tm hnode
build tm

if [ -z ${SGX_URL} ]; then
run_containers tm hnode redis
run_containers tm redis
else
run_containers sgx tm hnode redis
run_containers sgx tm redis
gen_sgx_key
fi

Expand Down

0 comments on commit 8ac2857

Please sign in to comment.