Skip to content

Commit

Permalink
add molecule tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bennsimon committed Aug 12, 2024
1 parent 9142cc5 commit f7d36d2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,31 @@ jobs:

- name: Lint Ansible
run: ansible-lint .
molecule:
name: Molecule
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro:
- ubuntu2204
- ubuntu2004
- ubuntu1804
steps:
- name: Checkout codebase
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install test dependencies
run: pip install ansible molecule molecule-plugins[docker] pytest-testinfra docker

- name: Run Molecule tests
run: molecule test --all
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}

0 comments on commit f7d36d2

Please sign in to comment.