Molecule testing workflow #5
This file contains 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 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 --assume-yes install podman python3-pip slirp4netns \ | |
uidmap --no-install-recommends | |
python3 -m pip install --user -U ansible ansible-lint \ | |
jmespath molecule-plugins[podman] passlib | |
- name: Run ansible-lint | |
run: | | |
ansible-lint | |
- name: Run molecule | |
run: | | |
ANSIBLE_KEEP_REMOTE_FILES=1 \ | |
ANSIBLE_REMOTE_TMP="/var/tmp/${USER}/ansible" \ | |
molecule test -s podman |