diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 105a8e4..85ce81b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,3 +48,55 @@ jobs: - name: Tests run: vendor/bin/phpunit + + vagrant: + name: Vagrant + + runs-on: ubuntu-latest + + strategy: + matrix: + virtual-box-version: + - 5.2 + - 6.0 + - 6.1 + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install VirtualBox + run: | + # Download and register Oracle VirtualBox keys + wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - + wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - + # Add Oracle VirtualBox repository + add-apt-repository "deb https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" + # Update apt-get + apt-get update -qq + # Install Linux headers + apt-get -y --force-yes install linux-headers-`uname -r` + # Install VirtualBox + apt-get install virtualbox-${VIRTUAL_BOX_VERSION} + + - name: Install Vagrant + run: | + # Add Vagrant PPA (unofficial) + add-apt-repository -y ppa:tiagohillebrandt/vagrant + # Update apt-get + apt-get update -qq + # Install Vagrant + apt-get install vagrant + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + coverage: none + php-version: 7.4 + tools: composer:v1, prestissimo + + - name: Install dependencies + run: composer install --no-interaction --no-progress --no-suggest --prefer-dist --optimize-autoloader --no-dev + + - name: Check Vagrant status + run: vagrant status