smoke-extra.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. name: smoke-extra
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. types: [opened, synchronize, labeled, reopened]
  8. paths:
  9. - '.github/workflows/smoke**'
  10. - '**Makefile'
  11. - '**.go'
  12. - '**.proto'
  13. - 'go.mod'
  14. - 'go.sum'
  15. jobs:
  16. smoke-extra:
  17. if: github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'smoke-test-extra')
  18. name: Run extra smoke tests
  19. runs-on: ubuntu-latest
  20. env:
  21. VAGRANT_DEFAULT_PROVIDER: libvirt
  22. steps:
  23. - uses: actions/checkout@v6
  24. - uses: actions/setup-go@v6
  25. with:
  26. go-version: '1.25'
  27. check-latest: true
  28. - name: add hashicorp source
  29. run: wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg && echo "deb [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
  30. - name: install vagrant and libvirt
  31. run: |
  32. sudo apt-get update && sudo apt-get install -y vagrant libvirt-daemon-system libvirt-dev
  33. sudo chmod 666 /dev/kvm
  34. sudo usermod -aG libvirt $(whoami)
  35. sudo chmod 666 /var/run/libvirt/libvirt-sock
  36. vagrant plugin install vagrant-libvirt
  37. - name: freebsd-amd64
  38. run: make smoke-vagrant/freebsd-amd64
  39. - name: openbsd-amd64
  40. run: make smoke-vagrant/openbsd-amd64
  41. - name: netbsd-amd64
  42. run: make smoke-vagrant/netbsd-amd64
  43. - name: linux-amd64-ipv6disable
  44. run: make smoke-vagrant/linux-amd64-ipv6disable
  45. # linux-386 runs last because it requires disabling KVM to use VirtualBox,
  46. # which prevents libvirt (used by the other tests) from working after this point.
  47. - name: install virtualbox for i386 test
  48. run: |
  49. sudo apt-get install -y virtualbox
  50. sudo rmmod kvm_amd kvm_intel kvm 2>/dev/null || true
  51. - name: linux-386
  52. env:
  53. VAGRANT_DEFAULT_PROVIDER: virtualbox
  54. run: make smoke-vagrant/linux-386
  55. timeout-minutes: 30