Skip to content

molecule

molecule #232

Workflow file for this run

---
name: molecule
on:
pull_request:
branches:
- master
schedule:
- cron: "0 5 * * 5"
jobs:
molecule:
name: molecule
runs-on: ubuntu-latest
strategy:
matrix:
scenario:
- install
- offline
- online
- stop
- start
- restart
- update
- upgrade
image:
- https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
include:
- scenario: install
image: https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
- scenario: install
image: https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2
- scenario: install
image: https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2
- scenario: update
image: https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud.latest.x86_64.qcow2
steps:
- name: Check out the codebase
uses: actions/checkout@v4
- name: Set up python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Update ubuntu repositories
run: sudo apt-get update
- name: Install make
run: sudo apt-get install -y make
- name: Install dependencies
run: make install
- name: Debug test environment
run: make debug
- name: Install role requirements
run: make requirements
- name: Run molecule tests.
run: make test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_KVM_IMAGE: ${{ matrix.image }}
MOLECULE_SCENARIO: ${{ matrix.scenario }}