name: Cloud Hypervisor Tests (VFIO)
on:
  push:
    branches:
      - main

jobs:
  build:
    if: github.event_name == 'push'
    name: Tests (VFIO)
    runs-on: jammy-vfio
    steps:
      - name: Code checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Run VFIO integration tests
        timeout-minutes: 15
        run: scripts/dev_cli.sh tests --integration-vfio
      - name: Run VFIO integration tests for musl
        timeout-minutes: 15
        run: scripts/dev_cli.sh tests --integration-vfio --libc musl