diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 618bc2da..9483c87e 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -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 diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index d863e338..a0d77194 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -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()