Skip to content

Commit

Permalink
test with go
Browse files Browse the repository at this point in the history
  • Loading branch information
clincha committed Aug 4, 2024
1 parent 758e6b3 commit 24b5f5d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,29 @@ jobs:
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor -o /usr/share/keyrings/oracle-virtualbox-2016.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt-get update && sudo apt-get install virtualbox-7.0
- name: "Install Vagrant"
run: |
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update && sudo apt-get install vagrant
- name: "Install Go"
uses: actions/setup-go@v5
with:
go-version: 1.22.5

- name: "Start Vagrant box"
working-directory: vagrant
run: |
sudo vagrant up
- name: "Run tests"
working-directory: pkg/proxmox
run: |
go test -v
- name: "Tear down Vagrant box"
working-directory: vagrant
run: |
sudo vagrant destroy -f
sudo vagrant destroy -f

0 comments on commit 24b5f5d

Please sign in to comment.