Implement alpha version #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vagrant | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
vagrant: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y virtualbox | |
sudo apt-get install -y vagrant | |
- name: Start Vagrant VM | |
run: | | |
cd tests/vm | |
vagrant up | |
vagrant ssh -c "echo 'Vagrant is running!'" | |
- name: Destroy Vagrant VM | |
if: always() | |
run: vagrant destroy -f |