Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions run-nitro-test-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,36 @@ runs:
if [ -n "${{ inputs.nitro-contracts-branch }}" ]; then
export NITRO_CONTRACTS_BRANCH="${{ inputs.nitro-contracts-branch }}"
fi

if [ -n "${{ inputs.token-bridge-branch }}" ]; then
export TOKEN_BRIDGE_BRANCH="${{ inputs.token-bridge-branch }}"
fi

./test-node.bash --init ${{ inputs.no-simple == 'true' && '--no-simple' || '' }} \
${{ inputs.l3-node == 'true' && '--l3node' || '' }} \
${{ inputs.no-token-bridge == 'true' && '--no-tokenbridge' || '--tokenbridge' }} \
${{ inputs.l3-node == 'true' && inputs.no-l3-token-bridge != 'true' && '--l3-token-bridge' || '' }} \
${{ inputs.args }} &
if [ -n "${{ inputs.args }}" ]; then
./test-node.bash --init ${{ inputs.args }} &
else
./test-node.bash --init \
${{ inputs.no-simple == 'true' && '--no-simple' || '' }} \
${{ inputs.l3-node == 'true' && '--l3node' || '' }} \
${{ inputs.no-token-bridge == 'true' && '--no-tokenbridge' || '--tokenbridge' }} \
${{ inputs.l3-node == 'true' && inputs.no-l3-token-bridge != 'true' && '--l3-token-bridge' || '' }} &
fi

- name: Wait for nitro startup
shell: bash
run: ${{ github.action_path }}/waitForNitro.sh 8547

- name: Wait for L3 startup
if: ${{ inputs.l3-node == 'true' }}
if: ${{ contains(inputs.args, '--l3node') || inputs.l3-node == 'true' }}
shell: bash
run: ${{ github.action_path }}/waitForNitro.sh 3347

- name: Wait for token bridge deployment
if: ${{ inputs.no-token-bridge != 'true' }}
if: ${{ contains(inputs.args, '--tokenbridge') || inputs.no-token-bridge != 'true' }}
shell: bash
run: ${{ github.action_path }}/waitForTokenBridge.sh localNetwork.json

- name: Wait for token bridge deployment
if: ${{ inputs.l3-node == 'true' && inputs.no-l3-token-bridge != 'true' }}
if: ${{ contains(inputs.args, '--l3-token-bridge') || (inputs.l3-node == 'true' && inputs.no-l3-token-bridge != 'true') }}
shell: bash
run: ${{ github.action_path }}/waitForTokenBridge.sh l2l3_network.json