Skip to content

Commit

Permalink
ci: use wait-for-it instead of just waiting for 10s
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
  • Loading branch information
vincentkfu committed Sep 19, 2024
1 parent bd02227 commit 99ff30f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/start-vm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ inputs:
runs:
using: "composite"
steps:
- name: install wait-for-it
run: sudo apt install -y wait-for-it
shell: bash
- name: Start VM in background
run: |
${{ inputs.qemu }} \
Expand All @@ -43,7 +46,7 @@ runs:
env:
SSHCMD: ssh root@localhost -p ${{ inputs.ssh_fwd_port }}
- name: Wait for VM to boot
run: sleep 10
run: wait-for-it localhost:${{ inputs.ssh_fwd_port }} -t 15
shell: bash
- name: Add guest host key to known_hosts
run: |
Expand Down

0 comments on commit 99ff30f

Please sign in to comment.