Created
October 21, 2022 01:41
-
-
Save danielnegreiros/b0c72c1276e8e9d8e707e9493fd9505e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Molecule Tests on Push | |
"on": | |
push: | |
jobs: | |
ansible_testing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "pypy3.9" | |
- name: Install Ansible Python packages | |
run: pip3 install ansible molecule docker molecule[docker] | |
- name: Execute Molecule | |
env: | |
PY_COLORS: "1" | |
ANSIBLE_FORCE_COLOR: "1" | |
run: | | |
cd collections/ansible_collections/infra/lab/roles/mysql | |
molecule test --all | |
cd - | |
cd collections/ansible_collections/infra/lab/roles/nginx | |
molecule test --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment