Add customize command #125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
cache-dependency-path: go.sum | |
go-version-file: go.mod | |
- name: QEMU/Libvirt installation and configuration | |
run: | | |
# Install QEMU/Libvirt packages | |
sudo apt update | |
sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager | |
# Configure udev | |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger --name-match=kvm | |
- name: Generate OS disk image | |
run: | | |
make build-disk | |
- name: Run installer test | |
run: | | |
make INTEGRATION_TESTS=true VERBOSE=true ELMNTL_FIRMWARE=/usr/share/OVMF/OVMF_CODE_4M.fd test-installer | |
- name: Clean test | |
if: ${{ always() }} | |
run: | | |
make INTEGRATION_TESTS=true test-stop || true | |
make INTEGRATION_TESTS=true test-clean || true |