-
Notifications
You must be signed in to change notification settings - Fork 8
/
action.yml
46 lines (43 loc) · 1.42 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Test Ansible roles with Molecule
description: Run Molecule to test Ansible roles
author: Robert de Bock <[email protected]>
inputs:
namespace:
description: The [Docker Hub](https://hub.docker.com/) namespace where the image can be found. Defaults to `robertdebock`.
required: false
default: robertdebock
image:
description: The image you want to run on. Defaults to `fedora`.
required: false
default: fedora
tag:
description: The tag of the container image to use. Defaults to `latest`.
required: false
default: latest
options:
description: Options you can pass to [`tox`](https://tox.readthedocs.io/en/latest/), for example `--parallel all`.
required: false
command:
description: What command to pass to [molecule](https://molecule.readthedocs.io/en/latest/), for example `create` or `syntax`. Defaults to `test`.
required: false
default: test
scenario:
description: The molecule scenario to run. Default to `default`.
required: false
default: default
runs:
using: docker
image: 'docker://robertdebock/github-action-molecule:6.0.1'
env:
ANSIBLE_ROLES_PATH: "../"
ANSIBLE_ASYNC_DIR: "/tmp/.ansible_async"
namespace: ${{ inputs.namespace }}
image: ${{ inputs.image }}
tag: ${{ inputs.tag }}
options: ${{ inputs.options }}
command: ${{ inputs.command }}
scenario: ${{ inputs.scenario }}
branding:
icon: play
color: green