-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (38 loc) · 1.12 KB
/
kvm-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
name: Vagrant (KVM) Tests
on:
pull_request:
push:
branches:
- main
jobs:
# https://github.com/jonashackt/vagrant-github-actions
test-kvm:
name: KVM Test
runs-on: macos-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: Install test dependencies.
run: pip install ansible
- name: Install Ansible Dependencies
working-directory: tests/ubuntu2004-singlenode
run: |
ansible-galaxy collection install community.general
ansible-galaxy collection install ansible.posix
- name: Install Vagrant
run: |
brew tap hashicorp/tap
brew install hashicorp/tap/hashicorp-vagrant
- name: Show Vagrant version
run: vagrant --version
# Disabled until we fix it
# - name: Run vagrant up
# working-directory: tests/ubuntu2004-singlenode
# run: vagrant up