Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
#226 Convert Vagrant stage
Browse files Browse the repository at this point in the history
  • Loading branch information
T2L committed Nov 19, 2020
1 parent 842c54e commit 2601239
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2601239

Please sign in to comment.