Skip to content
Closed
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
4 changes: 4 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ jobs:
run: make

- name: Install qemu-img
if: matrix.runner != 'macos-13'
run: |
brew update
brew install qemu
- name: Verify qemu-img is installed
if: matrix.runner != 'macos-13'
run: qemu-img --version
- name: Unit tests
env:
RUNNER_OS_VERSION: ${{ matrix.runner }}
run: make test-unit

# Integration tests run only on macos-13 due to virtualization requirements
Expand Down
3 changes: 3 additions & 0 deletions pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ func TestNetworkBlockDevice_NoDevice(t *testing.T) {
}

func TestVirtualMachine_ValidateBlockDevices(t *testing.T) {
if os.Getenv("RUNNER_OS_VERSION") == "macos-13" {
t.Skip("Skipping test on macos-13 due to qemu-img not being available")
}
vm := &VirtualMachine{}

tmpDir := t.TempDir()
Expand Down