aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2025-06-01 10:40:51 +0300
committerMartin Pärtel <martin.partel@gmail.com>2025-06-01 16:32:08 +0300
commit4d0e27820d3b0094247ca36d9d4351839fbbbb1a (patch)
tree2984de54b1124abb164e2ac6a3b2f7121e307cce
parent4a5ba91d01ea667af4a1b7bb5ee16cc665c11944 (diff)
downloadbindfs-4d0e27820d3b0094247ca36d9d4351839fbbbb1a.tar.gz
Got Vagrant to work in CI
-rw-r--r--.github/workflows/tests.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 5a082a6..353c4e7 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -203,8 +203,7 @@ jobs:
autoconf automake libtool pkg-config \
libvirt-daemon-system ebtables libguestfs-tools \
libxslt-dev libxml2-dev zlib1g-dev ruby ruby-dev
- vagrant plugin install vagrant-libvirt
- sudo adduser "${USER}" libvirt
+ sudo vagrant plugin install vagrant-libvirt
- name: Checkout Git branch
uses: actions/checkout@v4
@@ -222,6 +221,8 @@ jobs:
env:
VAGRANT_DEFAULT_PROVIDER: libvirt
run: |-
- # sudo needed because the current shell is not yet in group "libvirt"
+ # We use vagrant with sudo because it has proven stupendously difficult to
+ # get the current shell into group "libvirt" in a way that Vagrant is happy with.
# https://github.com/actions/runner-images/discussions/5981
- sudo -E -s -u "${USER}" ruby vagrant/test.rb --print-logs ${{ matrix.box }}
+ sudo chmod a+rx /root # Give libvirt access to /root/.vagrant.d which is about to be created
+ sudo ruby vagrant/test.rb --print-logs ${{ matrix.box }}