Skip to content

Commit 6b5dc7b

Browse files
authored
Merge pull request #34 from AkihiroSuda/fix-ci
CI: add macos-13-xl
2 parents 6479941 + 2eae803 commit 6b5dc7b

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
name: Integration tests
1313
strategy:
1414
matrix:
15-
platform: [macos-11, macos-12]
15+
# macos-13-xl is used as macos-13 seems too flaky
16+
platform: [macos-11, macos-12, macos-13-xl]
1617
runs-on: ${{ matrix.platform }}
1718
timeout-minutes: 40
1819
steps:
@@ -47,27 +48,45 @@ jobs:
4748
# Bridged mode cannot be tested on GHA
4849
- uses: actions/setup-go@v3
4950
with:
50-
go-version: 1.19.x
51+
go-version: 1.20.x
5152
- name: Install Lima
5253
run: |
5354
git clone https://github.com/lima-vm/lima
5455
cd lima
55-
git checkout v0.14.2
56+
git checkout v0.17.0
5657
make
5758
sudo make install
5859
limactl sudoers >etc_sudoers.d_lima
5960
sudo install -o root etc_sudoers.d_lima "/private/etc/sudoers.d/lima"
6061
- name: Install the dependencies for the Lima integration test
6162
run: brew install iperf3 jq
62-
- name: "Lima: iperf3 (host -> vm1)"
63+
- name: "Lima: vm1: prepare"
64+
run: |
65+
limactl start --name=vm1 --set '.cpus=1 | .memory = "1GiB"' --tty=false template://vmnet
66+
limactl shell vm1 ip a
67+
- name: "Lima: vm1: set up iperf3"
6368
run: |
64-
limactl start --name=vm1 --tty=false template://vmnet
6569
limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
6670
limactl shell vm1 systemd-run --user --unit=iperf3 iperf3 -s
71+
- name: "Lima: vm1: get the IP"
72+
run: |
6773
limactl shell vm1 ip -4 -json addr show dev lima0 | jq -r .[0].addr_info[0].local | tee /tmp/vm1_iP
74+
- name: "Lima: vm1: iperf3 (host -> vm1)"
75+
run: |
6876
iperf3 -c "$(cat /tmp/vm1_ip)"
69-
- name: "Lima: iperf3 (vm2 -> vm1)"
77+
- name: "Lima: vm1: debug"
78+
if: failure()
79+
run: tail -n500 ~/.lima/vm1/*.log
80+
- name: "Lima: vm2: prepare"
81+
run: |
82+
limactl start --name=vm2 --set '.cpus=1 | .memory = "1GiB"' --tty=false template://vmnet
83+
limactl shell vm2 ip a
84+
- name: "Lima: vm2: set up iperf3"
7085
run: |
71-
limactl start --name=vm2 --tty=false template://vmnet
7286
limactl shell vm2 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
87+
- name: "Lima: vm2: iperf3 (vm2 -> vm1)"
88+
run: |
7389
limactl shell vm2 iperf3 -c "$(cat /tmp/vm1_ip)"
90+
- name: "Lima: vm2: debug"
91+
if: failure()
92+
run: tail -n500 ~/.lima/vm2/*.log

0 commit comments

Comments
 (0)