From 8ac2857f6e9645103ff0ff09e9f33c151a93fa3b Mon Sep 17 00:00:00 2001 From: badrogger Date: Mon, 4 Dec 2023 18:20:26 +0000 Subject: [PATCH] Switch to external hardhat-node --- .github/workflows/test.yml | 6 ++++++ .gitmodules | 8 +++++++- scripts/run-test-containers.sh | 6 +++--- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 63129a21..4bbc7949 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.gitmodules b/.gitmodules index d54a2086..207279c1 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 + diff --git a/scripts/run-test-containers.sh b/scripts/run-test-containers.sh index 4d83988d..105fd150 100755 --- a/scripts/run-test-containers.sh +++ b/scripts/run-test-containers.sh @@ -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