Add docker tests to spectests matrix

This commit is contained in:
sophia 2020-09-16 14:23:52 -05:00
parent 32ac59b308
commit 51c2b4d418
2 changed files with 9 additions and 1 deletions

View File

@ -19,6 +19,8 @@ export PKT_VAGRANT_GUEST_BOXES="${VAGRANT_GUEST_BOXES}"
export PKT_VAGRANT_HOST_MEMORY="${VAGRANT_HOST_MEMORY:-10000}"
export PKT_VAGRANT_CWD="test/vagrant-spec/"
export PKT_VAGRANT_VAGRANTFILE=Vagrantfile.spec
export PKT_VAGRANT_PROVIDERS="${VAGRANT_SPEC_PROVIDERS}"
export PKT_VAGRANT_DOCKER_IMAGES="${VAGRANT_DOCKER_IMAGES}"
###
# Run the job

View File

@ -26,6 +26,7 @@ jobs:
matrix:
host_os: ['hashicorp/bionic64']
guest_os: ['hashicorp-vagrant/ubuntu-16.04']
docker_images: ['nginx']
steps:
- name: Code Checkout
uses: actions/checkout@v1
@ -36,7 +37,9 @@ jobs:
VAGRANT_HOST_BOXES: ${{matrix.host_os}}
VAGRANT_GUEST_BOXES: ${{matrix.guest_os}}
VAGRANT_PRERELEASE_VERSION: ${{ github.event.client_payload.prerelease_version }}
VAGRANT_SPEC_PROVIDERS: 'virtualbox,docker'
VAGRANT_DOCKER_IMAGES: ${{matrix.docker_images}}
spec-tests:
if: github.repository == 'hashicorp/vagrant-blackbox'
runs-on: self-hosted
@ -46,6 +49,7 @@ jobs:
matrix:
host_os: ['hashicorp/bionic64']
guest_os: ['hashicorp-vagrant/ubuntu-16.04']
docker_images: ['nginx']
steps:
- name: Run Tests with host ${{ matrix.host_os }} using guest ${{ matrix.guest_os }}
run: ./.ci/spec/run-test.sh
@ -53,6 +57,8 @@ jobs:
env:
VAGRANT_HOST_BOXES: ${{matrix.host_os}}
VAGRANT_GUEST_BOXES: ${{matrix.guest_os}}
VAGRANT_SPEC_PROVIDERS: 'virtualbox,docker'
VAGRANT_DOCKER_IMAGES: ${{matrix.docker_images}}
cleanup:
if: github.repository == 'hashicorp/vagrant-blackbox'