27 lines
560 B
YAML
27 lines
560 B
YAML
name: vagrant-up
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
vagrant-up:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: git.plantroon.com/plantroon/vagrant-vbox:7.0.8
|
|
privileged: true
|
|
volumes:
|
|
- /dev/vboxdrv:/dev/vboxdrv
|
|
|
|
steps:
|
|
- name: Get wget and git
|
|
run: apt update && apt install -y wget git nodejs
|
|
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run vagrant up
|
|
run: vagrant up --provider=virtualbox
|
|
|
|
- name: ssh into box after boot
|
|
run: vagrant ssh -c "echo 'hello world!'"
|
|
|