homelab/.github/workflows/vagrant.yml

28 lines
578 B
YAML
Raw Normal View History

2023-07-01 05:04:53 +00:00
name: vagrant
on: [push]
jobs:
vagrant:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Vagrant boxes
uses: actions/cache@v2
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }}
restore-keys: |
${{ runner.os }}-vagrant-
- name: Show Vagrant version
run: vagrant --version
- name: Run vagrant up
run: vagrant up
- name: ssh into box after boot
run: vagrant ssh -c "echo 'hello world!'"