Griffin is automatically tested on every push using GitHub Actions across three platforms:
Workflow files are located in .github/workflows/:
ubuntu.yaml - Ubuntu testingmacos.yaml - macOS testingwsl.yaml - WSL testingWe use Molecule for local testing of the Ansible role. This allows you to verify changes in an isolated Docker container before pushing code.
Prerequisites:
pip install molecule molecule-plugins[docker])Running Tests: To run the full test suite (create, converge, verify, destroy):
cd post-installation
molecule test
To just run the playbook (useful for iterating):
molecule converge
We use ansible-lint to ensure code quality and adherence to best practices.
Running Linter:
ansible-lint
This check is also enforced in CI via the lint.yaml workflow.
If you encounter any issues during the testing process, consult the FAQ for assistance.