use molecule github action

pull/2/head
Cian Hatton 3 years ago
parent 2dd475622d
commit b67760a944

@ -11,17 +11,26 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.8.9 - name: "CD"
uses: actions/setup-python@v2 run: cd ansible/roles/setup_docker
- name: Molecule
uses: gofrolist/molecule-action@v2
with: with:
python-version: 3.8.9 molecule_command: test
- name: Install dependencies
run: pip install -r requirements.txt
- name: Test with molecule
run: |
cd ansible/roles/setup_docker
molecule test
env: env:
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1" PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1" # - name: Set up Python 3.8.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.8.9
# - name: Install dependencies
# run: pip install -r requirements.txt
#
# - name: Test with molecule
# run: |
# cd ansible/roles/setup_docker
# molecule test
# env:
# PY_COLORS: "1"
# ANSIBLE_FORCE_COLOR: "1"
Loading…
Cancel
Save