From 5c4b7a185ffc58176e779f9e6c2e1fb25a3df548 Mon Sep 17 00:00:00 2001 From: Jakub Filo Date: Tue, 6 Jun 2023 07:14:16 +0000 Subject: [PATCH] Add Gitea action for testing with Vagrant --- .gitea/workflows/vagrant-up.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/vagrant-up.yml diff --git a/.gitea/workflows/vagrant-up.yml b/.gitea/workflows/vagrant-up.yml new file mode 100644 index 0000000..fc0bb92 --- /dev/null +++ b/.gitea/workflows/vagrant-up.yml @@ -0,0 +1,26 @@ +name: vagrant-up + +on: [push] + +jobs: + vagrant-up: + runs-on: ubuntu-latest + container: + image: git.plantroon.com/plantroon/vbox-vagrant:7.0.6 + 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!'" +