-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (27 loc) · 887 Bytes
/
docker.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: docker
on: [push]
jobs:
molecule-docker-ubuntu:
runs-on: ubuntu-latest
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 dependencies with pipenv
run: |
docker info
pip install pipenv
pipenv install
- name: Molecule testing GHA-locally with Docker on multiple Ubuntu distros
run: |
pipenv run molecule test
pipenv run molecule test --scenario-name docker-ubuntu-focal
pipenv run molecule test --scenario-name docker-ubuntu-xenial