diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 12b675c5..9c37ef80 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -59,7 +59,7 @@ jobs: needs: [rustfmt] strategy: matrix: - crate: [rosetta-server-astar, rosetta-server-ethereum, rosetta-server-polkadot, rosetta-client, rosetta-testing-arbitrum, rosetta-testing-binance] + crate: [rosetta-server-astar, rosetta-server-ethereum, rosetta-server-polkadot, rosetta-client, rosetta-testing-arbitrum, rosetta-testing-binance, rosetta-testing-avalanche,] name: ${{ matrix.crate }} runs-on: self-hosted steps: @@ -104,13 +104,7 @@ jobs: run: | cd nitro-testnode ./test-node.bash --detach - - - name: Setup BSC node - if: ${{ matrix.crate == 'rosetta-testing-binance' }} - run: | - docker pull manojanalog/bsc_for_analog - docker run -d -p 8545:8545 -p 8546:8546 manojanalog/bsc_for_analog:latest geth --datadir ./datadir --unlock 0x5e5C830f97292a3C6Bfea464D3ad4CE631e6Fbc5 --allow-insecure-unlock --http --http.addr 0.0.0.0 --http.port 8545 --http.api personal,db,eth,net,web3 --mine --miner.etherbase 0x5e5C830f97292a3C6Bfea464D3ad4CE631e6Fbc5 --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.api personal,db,eth,net,web3 --rpc.allow-unprotected-txs --password password.txt - + - name: Setup avalanche-cli node if: ${{matrix.crate == 'rosetta-testing-avalanche'}} run: | @@ -118,6 +112,13 @@ jobs: docker run -v MY_LOCAL_CLI_DIR:/root/.avalanche-cli/ avaplatform/avalanche-cli:latest blockchain create local --evm --evm-chain-id 676767 --evm-defaults --evm-token SUB docker run -v MY_LOCAL_CLI_DIR:/root/.avalanche-cli/ avaplatform/avalanche-cli:latest blockchain deploy local --local + - name: Setup BSC node + if: ${{ matrix.crate == 'rosetta-testing-binance' }} + run: | + docker pull manojanalog/bsc_for_analog + docker run -d -p 8545:8545 -p 8546:8546 manojanalog/bsc_for_analog:latest geth --datadir ./datadir --unlock 0x5e5C830f97292a3C6Bfea464D3ad4CE631e6Fbc5 --allow-insecure-unlock --http --http.addr 0.0.0.0 --http.port 8545 --http.api personal,db,eth,net,web3 --mine --miner.etherbase 0x5e5C830f97292a3C6Bfea464D3ad4CE631e6Fbc5 --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.api personal,db,eth,net,web3 --rpc.allow-unprotected-txs --password password.txt + + - name: test (${{ matrix.crate }}) run: cargo test --locked -p ${{ matrix.crate }}