@@ -250,73 +250,6 @@ jobs:
250250 name : test-reports-${{ env.TESTREPORTS_NAME }}
251251 path : ${{ env.TESTREPORTS_BASEDIR }}
252252
253- test-bsd-unit :
254- runs-on : ubuntu-22.04
255- continue-on-error : true
256- strategy :
257- fail-fast : false
258- matrix :
259- os :
260- - freebsd
261- - netbsd
262- - openbsd
263- env :
264- # https://github.com/hashicorp/vagrant/issues/13652
265- VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT : 1
266- steps :
267- -
268- name : Prepare
269- run : |
270- echo "VAGRANT_FILE=hack/Vagrantfile.${{ matrix.os }}" >> $GITHUB_ENV
271-
272- # Sets semver Go version to be able to download tarball during vagrant setup
273- goVersion=$(curl --silent "https://go.dev/dl/?mode=json&include=all" | jq -r '.[].files[].version' | uniq | sed -e 's/go//' | sort -V | grep $GO_VERSION | tail -1)
274- echo "GO_VERSION=$goVersion" >> $GITHUB_ENV
275- -
276- name : Checkout
277- uses : actions/checkout@v6
278- -
279- name : Cache Vagrant boxes
280- uses : actions/cache@v5
281- with :
282- path : ~/.vagrant.d/boxes
283- key : ${{ runner.os }}-vagrant-${{ matrix.os }}-${{ hashFiles(env.VAGRANT_FILE) }}
284- restore-keys : |
285- ${{ runner.os }}-vagrant-${{ matrix.os }}-
286- -
287- name : Install vagrant
288- run : |
289- set -x
290- wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
291- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
292- sudo apt-get update
293- sudo apt-get install -y libvirt-dev libvirt-daemon libvirt-daemon-system vagrant vagrant-libvirt ruby-libvirt
294- sudo systemctl enable --now libvirtd
295- sudo chmod a+rw /var/run/libvirt/libvirt-sock
296- vagrant plugin install vagrant-libvirt
297- vagrant --version
298- -
299- name : Set up vagrant
300- run : |
301- ln -sf ${{ env.VAGRANT_FILE }} Vagrantfile
302- vagrant up --no-tty
303- -
304- name : Test
305- run : |
306- vagrant ssh -- "cd /vagrant; SKIP_INTEGRATION_TESTS=1 go test -mod=vendor -coverprofile=coverage.txt -covermode=atomic ${{ env.TESTFLAGS }} ./..."
307- vagrant ssh -c "sudo cat /vagrant/coverage.txt" > coverage.txt
308- -
309- name : Upload coverage
310- if : always()
311- uses : codecov/codecov-action@v5
312- with :
313- files : ./coverage.txt
314- env_vars : RUNNER_OS
315- flags : unit,${{ matrix.os }}
316- token : ${{ secrets.CODECOV_TOKEN }}
317- env :
318- RUNNER_OS : ${{ matrix.os }}
319-
320253 govulncheck :
321254 runs-on : ubuntu-24.04
322255 permissions :
0 commit comments