Skip to content

Commit

Permalink
Use selfhosted runners (#135)
Browse files Browse the repository at this point in the history
* fix(ci): add curl to Vagrantfile

* fix(ci): use selfhosted runner

* fix(tests/net): use exit in if block
  • Loading branch information
ezrizhu authored Nov 21, 2023
1 parent 5f15906 commit 81b21fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/vagrant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ jobs:
- debianlvm
- rocky9
- fedora33
runs-on: macos-12
runs-on: self-hosted
steps:
- uses: actions/checkout@v3

- name: Start vagrant box
run: vagrant up ${{ matrix.vagrant_target }}

- name: Stop vagrant box
run: vagrant destroy -f ${{ matrix.vagrant_target }}
if: ${{ success() || failure() }} # we want to run this step even if the last step failed
8 changes: 4 additions & 4 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Vagrant.configure("2") do |config|
debian.vm.provision "file", source: "./", destination: "/home/vagrant/try"
debian.vm.provision "shell", privileged: false, inline: "
sudo apt-get update
sudo apt-get install -y git expect
sudo apt-get install -y git expect curl
sudo chown -R vagrant:vagrant try
cd try
scripts/run_tests.sh
Expand Down Expand Up @@ -39,7 +39,7 @@ Vagrant.configure("2") do |config|
debianlvm.vm.provision "file", source: "./", destination: "/home/vagrant/try"
debianlvm.vm.provision "shell", privileged: false, inline: "
sudo apt-get update
sudo apt-get install -y git expect lvm2 mergerfs
sudo apt-get install -y git expect lvm2 mergerfs curl
# Create an image for the lvm disk
sudo fallocate -l 2G /root/lvm_disk.img
Expand Down Expand Up @@ -74,7 +74,7 @@ Vagrant.configure("2") do |config|
rocky.vm.box = "generic/rocky9"
rocky.vm.provision "file", source: "./", destination: "/home/vagrant/try"
rocky.vm.provision "shell", privileged: false, inline: "
sudo yum install -y git expect
sudo yum install -y git expect curl
sudo chown -R vagrant:vagrant try
cd try
TRY_TOP=$(pwd) scripts/run_tests.sh
Expand All @@ -86,7 +86,7 @@ Vagrant.configure("2") do |config|
fedora.vm.box = "generic/fedora33"
fedora.vm.provision "file", source: "./", destination: "/home/vagrant/try"
fedora.vm.provision "shell", privileged: false, inline: "
sudo yum install -y git expect
sudo yum install -y git expect curl
sudo chown -R vagrant:vagrant try
cd try
TRY_TOP=$(pwd) scripts/run_tests.sh
Expand Down
4 changes: 2 additions & 2 deletions test/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TRY="$TRY_TOP/try"
"$TRY" -x curl 1.1
if [ $? -eq 7 ]
then
return 0
exit 0
else
return 1
exit 1
fi

0 comments on commit 81b21fc

Please sign in to comment.