for testing only #16
Workflow file for this run
This file contains 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: 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.) |