Skip to content

robertdebock/docker-github-action-molecule

Repository files navigation

docker-github-action-molecule

A container that is used for GitHub actions molecule.

github-action-molecule build status

This container contains:

  • ansible - Used to run the tests.
  • ansible-lint - A command-line tool for linting playbooks, roles and collections aimed towards any Ansible users.
  • docker - Used by molecule to start instances using the docker driver.
  • molecule - Used to orchestrate the tests. molecule-plugins are installed too.
  • tox - Used to test multiple version of ansible if tox.ini exists.
  • testinfra - Used to test the instances.
  • yamllint - Used to lint YAML files.
  • rsync, required in same cases for Molecule.
  • Linux tools like docker, gcc, git (core), python3-* and rsync are installed too.

The default behaviour is to:

  • See if tox.ini exists -> Run tox
  • Otherwise -> Run molecule test
  • Retry either (tox or molecule) 3 times.
  • Run test if command is not set.
  • Test the default scenario if scenario in not set.

Read how to test locally.

robertdebock

Please consider sponsoring me.