2020-09-02 13:59:50 +00:00
|
|
|
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
|
2021-03-18 14:05:28 +00:00
|
|
|
env:
|
|
|
|
TEST_WITH_VAGRANT: "yes"
|
2020-09-02 13:59:50 +00:00
|
|
|
steps:
|
2020-11-09 22:16:43 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-03-18 14:05:28 +00:00
|
|
|
- name: Cleanup state directory
|
|
|
|
run: |
|
|
|
|
rm -rf ./deploy/state
|
2020-11-09 22:16:43 +00:00
|
|
|
- name: Vagrant Test
|
|
|
|
run: |
|
|
|
|
export VAGRANT_DEFAULT_PROVIDER="virtualbox"
|
2021-08-09 14:04:06 +00:00
|
|
|
cd ./test/vagrant
|
|
|
|
go test --timeout 1h -v ./
|