-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (27 loc) · 949 Bytes
/
vagrant.yml
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
name: vagrant
on: [push]
jobs:
molecule-vagrant-ubuntu:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Cache pipenv virtualenvs incl. all pip packages
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install required dependecies with pipenv
run: |
pip install pipenv
pipenv install
- name: Molecule testing GHA-locally with Vagrant Ubuntu Bionic
run: |
pipenv run molecule create --scenario-name vagrant-ubuntu
pipenv run molecule converge --scenario-name vagrant-ubuntu
pipenv run molecule verify --scenario-name vagrant-ubuntu
pipenv run molecule destroy --scenario-name vagrant-ubuntu