-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (39 loc) · 1.37 KB
/
integration-test.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: Run integration tests
on:
workflow_dispatch:
push:
branches:
- enh/integration-tests
pull_request:
types: [labeled, synchronize, reopened]
paths-ignore:
- 'docs/**'
jobs:
integration-tests:
runs-on: ubuntu-22.04
#if: contains(github.event.pull_request.labels.*.name, 'integration-tests')
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends qemu-utils ca-certificates libvirt-clients libcephfs-dev librbd-dev librados-dev libc-bin gcc
sudo apt-get install -y cpu-checker
sudo kvm-ok
sudo apt-get install -y qemu-kvm libvirt-daemon-system
sudo usermod -aG kvm $USER
sudo usermod -aG libvirt $USER
sudo setfacl -m user:$USER:rw /var/run/libvirt/libvirt-sock
sudo systemctl enable --now libvirtd
sudo systemctl start libvirtd
sudo systemctl status libvirtd
sudo update-ca-certificates
sudo rm -rf /var/lib/apt/lists
- name: Run go tests
run: |
make integration-tests
# Add more steps if necessary (e.g., configuring networking, creating VMs, etc.)