Skip to content

Molecule testing workflow #127

Molecule testing workflow

Molecule testing workflow #127

Workflow file for this run

---
name: Molecule testing workflow
on:
workflow_dispatch:
schedule:
- cron: "30 5 * * */3"
jobs:
Molecule:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get --assume-yes --no-install-recommends install python3-pip
python3 -m pip install --user -U ansible ansible-lint \
jmespath molecule-plugins[docker] passlib
python3 -m pip install --user 'requests==2.28.1'
- name: Run ansible-lint
run: |
ansible-lint
- name: Run molecule
run: |
ANSIBLE_REMOTE_TMP="/var/tmp/${USER}/ansible" \
molecule test -s docker