Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 7 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,9 @@ jobs:
- name: Test (shared mode)
run: ./test/test.sh /var/run/socket_vmnet
# Bridged mode cannot be tested on GHA
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: 1.23.x
- name: Install Lima
run: |
git clone https://github.com/lima-vm/lima
cd lima
git checkout v0.23.2
make
sudo make install
brew install lima
limactl sudoers >etc_sudoers.d_lima
sudo install -o root etc_sudoers.d_lima "/private/etc/sudoers.d/lima"
- name: Install the dependencies for the Lima integration test
Expand All @@ -86,7 +79,9 @@ jobs:
limactl shell vm1 ip a
- name: "Lima: vm1: set up iperf3"
run: |
limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
export DEBIAN_FRONTEND=noninteractive
limactl shell vm1 sudo apt-get update
limactl shell vm1 sudo apt-get install -y iperf3
limactl shell vm1 sudo systemctl start iperf3.service
- name: "Lima: vm1: get the IP"
run: |
Expand All @@ -103,7 +98,9 @@ jobs:
limactl shell vm2 ip a
- name: "Lima: vm2: set up iperf3"
run: |
limactl shell vm2 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
export DEBIAN_FRONTEND=noninteractive
limactl shell vm2 sudo apt-get update
limactl shell vm2 sudo apt-get install -y iperf3
- name: "Lima: vm2: iperf3 (vm2 -> vm1)"
run: |
limactl shell vm2 iperf3 -c "$(cat /tmp/vm1_ip)"
Expand Down
6 changes: 1 addition & 5 deletions test/vmnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ images:
initrd:
location: https://cloud-images.ubuntu.com/releases/24.04/release-20240821/unpacked/ubuntu-24.04-server-cloudimg-amd64-initrd-generic
digest: sha256:c44215c42d97abd9ada4a961de0ab7305d74c39860776cf2d7a0260ac9d0637e

mounts:
- location: "~"
- location: "/tmp/lima"
writable: true
plain: true
memory: "1g"
cpus: 1
networks:
Expand Down