Skip to content

Commit 7811317

Browse files
committed
CI: split steps
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 6479941 commit 7811317

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,33 @@ jobs:
5959
sudo install -o root etc_sudoers.d_lima "/private/etc/sudoers.d/lima"
6060
- name: Install the dependencies for the Lima integration test
6161
run: brew install iperf3 jq
62-
- name: "Lima: iperf3 (host -> vm1)"
62+
- name: "Lima: vm1: prepare"
63+
run: |
64+
limactl start --name=vm1 --set '.cpus=1 | .memory = "1GiB"' --tty=false template://vmnet
65+
limactl shell vm1 ip a
66+
- name: "Lima: vm1: set up iperf3"
6367
run: |
64-
limactl start --name=vm1 --tty=false template://vmnet
6568
limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
6669
limactl shell vm1 systemd-run --user --unit=iperf3 iperf3 -s
70+
- name: "Lima: vm1: get the IP"
71+
run: |
6772
limactl shell vm1 ip -4 -json addr show dev lima0 | jq -r .[0].addr_info[0].local | tee /tmp/vm1_iP
73+
- name: "Lima: vm1: iperf3 (host -> vm1)"
74+
run: |
6875
iperf3 -c "$(cat /tmp/vm1_ip)"
69-
- name: "Lima: iperf3 (vm2 -> vm1)"
76+
- name: "Lima: vm1: debug"
77+
if: failure()
78+
run: tail -n500 ~/.lima/vm1/*.log
79+
- name: "Lima: vm2: prepare"
80+
run: |
81+
limactl start --name=vm2 --set '.cpus=1 | .memory = "1GiB"' --tty=false template://vmnet
82+
limactl shell vm2 ip a
83+
- name: "Lima: vm2: set up iperf3"
7084
run: |
71-
limactl start --name=vm2 --tty=false template://vmnet
7285
limactl shell vm2 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
86+
- name: "Lima: vm2: iperf3 (vm2 -> vm1)"
87+
run: |
7388
limactl shell vm2 iperf3 -c "$(cat /tmp/vm1_ip)"
89+
- name: "Lima: vm2: debug"
90+
if: failure()
91+
run: tail -n500 ~/.lima/vm2/*.log

0 commit comments

Comments
 (0)