/docker-github-action-molecule

Primary LanguageShellApache License 2.0Apache-2.0

docker-github-action-molecule

| Forked from https://github.com/robertdebock/docker-github-action-molecule

A container that is used for GitHub actions molecule.

github-action-molecule build status

This container contains:

  • docker - Used by molecule to start instances using the docker driver.
  • git - Used to pull data from a repository.
  • molecule version 3.x.x - Used to orchestrate the tests
  • tox - Used to test multiple version of ansible if tox.ini exists.
  • ansible-later - A best practice scanner and linting tool.
  • ansible-lint - A command-line tool for linting playbooks, roles and collections aimed towards any Ansible users.

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.