-
Notifications
You must be signed in to change notification settings - Fork 33
46 lines (44 loc) · 1.91 KB
/
e2e-fedora.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: e2e-fedora
run-name: end-to-end test latest Fedora (${{ github.sha }} ${{ github.ref }} ${{ github.actor }})
on: [push]
jobs:
e2e-est-fedora:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
# XXX remove when https://github.com/actions/runner-images/issues/10977 is fixed ...
- name: disable man-db trigger
shell: sudo bash -e {0}
run: |
echo 'set man-db/auto-update false' | debconf-communicate
dpkg-reconfigure man-db
- name: install packages
shell: sudo bash -e {0}
run: |
apt update
apt -y install socat xterm libvirt-clients virtinst libvirt-daemon-system qemu-system-x86 goxkcdpwgen guestfish
- name: fix libvirt, kvm, guestfish permissions
shell: sudo bash -e {0}
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' > /etc/udev/rules.d/99-kvm4all.rules
udevadm trigger --name-match=kvm
setfacl -m user:$SUDO_USER:rw /var/run/libvirt/libvirt-sock
chmod 755 /home/runner
chmod 644 /boot/vmlinuz*
- name: verify libvirt, kvm setup
run: |
if [ $(virt-host-validate | grep /kvm'.\+PASS$' -c) -ne 2 ]; then
virt-host-validate
echo 'kvm validation failed' >&2
exit 23
fi
virsh --connect qemu:///system list --all
- name: run test
run: |
cd ..
mkdir -p work
set -x
cd work
../dracut-sshd/test/get-fedora.sh
../dracut-sshd/test/e2e.sh $(cat f-release)