|
12 | 12 | name: Integration tests
|
13 | 13 | strategy:
|
14 | 14 | 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] |
16 | 17 | runs-on: ${{ matrix.platform }}
|
17 | 18 | timeout-minutes: 40
|
18 | 19 | steps:
|
@@ -47,27 +48,45 @@ jobs:
|
47 | 48 | # Bridged mode cannot be tested on GHA
|
48 | 49 | - uses: actions/setup-go@v3
|
49 | 50 | with:
|
50 |
| - go-version: 1.19.x |
| 51 | + go-version: 1.20.x |
51 | 52 | - name: Install Lima
|
52 | 53 | run: |
|
53 | 54 | git clone https://github.com/lima-vm/lima
|
54 | 55 | cd lima
|
55 |
| - git checkout v0.14.2 |
| 56 | + git checkout v0.17.0 |
56 | 57 | make
|
57 | 58 | sudo make install
|
58 | 59 | limactl sudoers >etc_sudoers.d_lima
|
59 | 60 | sudo install -o root etc_sudoers.d_lima "/private/etc/sudoers.d/lima"
|
60 | 61 | - name: Install the dependencies for the Lima integration test
|
61 | 62 | 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" |
63 | 68 | run: |
|
64 |
| - limactl start --name=vm1 --tty=false template://vmnet |
65 | 69 | limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
|
66 | 70 | limactl shell vm1 systemd-run --user --unit=iperf3 iperf3 -s
|
| 71 | + - name: "Lima: vm1: get the IP" |
| 72 | + run: | |
67 | 73 | 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: | |
68 | 76 | 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" |
70 | 85 | run: |
|
71 |
| - limactl start --name=vm2 --tty=false template://vmnet |
72 | 86 | limactl shell vm2 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
|
| 87 | + - name: "Lima: vm2: iperf3 (vm2 -> vm1)" |
| 88 | + run: | |
73 | 89 | 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