Tinkerbell.Sandbox/.github/workflows/vagrant-packet.yaml

23 lines
552 B
YAML
Raw Normal View History

name: Setup with Vagrant on Packet
on:
push:
pull_request:
types: [labeled]
jobs:
vagrant-setup:
if: contains(github.event.pull_request.labels.*.name, 'ci-check/vagrant-setup')
runs-on: vagrant
env:
TEST_WITH_VAGRANT: "yes"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cleanup state directory
run: |
rm -rf ./deploy/state
- name: Vagrant Test
run: |
export VAGRANT_DEFAULT_PROVIDER="virtualbox"
go test --timeout 1h -v ./test/vagrant