change on for test #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Test | |
on: [push] | |
jobs: | |
es-node-integration-test: | |
runs-on: self-hosted | |
timeout-minutes: 2880 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install forge-std | |
run: git submodule init && git submodule update | |
- name: Checkout Contracts | |
run: | | |
cd ../storage-contracts-v1 | |
git checkout integration-test | |
git pull | |
npm install | |
npx hardhat run scripts/deployL2-it.js --network qkc_testnet >> deploy.log | |
echo ES_NODE_CONTRACT_ADDRESS=`cat .caddr` >> "$GITHUB_ENV" | |
- name: Clean Environment | |
run: | | |
cd ../es-node | |
rm -r es-data-it-bootnode | |
rm -r es-data-it | |
mkdir es-data-it-bootnode | |
echo 8714eb2672bb7ab01089a1060150b30bc374a3b00e18926460f169256d126339 > es-data-it-bootnode/esnode_p2p_priv.txt | |
- name: Build and Run Bootnode Node | |
run: | | |
make | |
./run-l2-it-rpc.sh >> es-data-it-bootnode/es-node.log& | |
- name: Upload blobs | |
run: | | |
cd ../ethstorage-sdk | |
git checkout main | |
git pull | |
npm install | |
rollup -c | |
node it.js | |
# upload multi | |
- name: Test | |
run: | | |
cd ../es-node/cmd/integration-test-server | |
go build | |
./integration-test-server > itserver.log& | |
cd ../.. | |
env ES_NODE_STORAGE_MINER=0x5C935469C5592Aeeac3372e922d9bCEabDF8830d ES_NODE_SIGNER_PRIVATE_KEY=e690c916d02b6f3ad4bb70cc2663389ea88a79ded45613b1bd5545961d063258 ./run-l2-it.sh >> es-data-it/es-node.log& |