-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
60 lines (57 loc) · 2.07 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
name: Molecule for Ansible
description: Test Ansible Roles with Molecule
author: Michal Muransky <[email protected]>
branding:
icon: play-circle
color: gray-dark
inputs:
molecule_command:
description: |
Molecule commands:
check Use the provisioner to perform a Dry-Run.
cleanup Use the provisioner to cleanup changes.
converge Use the provisioner to configure instances.
create Use the provisioner to start the instances.
dependency Manage the role's dependencies.
destroy Use the provisioner to destroy the instances.
drivers List drivers.
idempotence Use the provisioner to test the idempotence.
init Initialize a new role or scenario.
lint Lint the role.
list List status of instances.
login Log in to one instance.
matrix List matrix of steps used to test instances.
prepare Use the provisioner to prepare the instances.
reset Reset molecule temporary folders.
side-effect Use the provisioner to perform side-effects to the instances.
syntax Use the provisioner to syntax check the role.
test Test cicle.
verify Run automated tests against instances.
required: true
default: 'test'
converge_extra_args:
description: |
Run molecule converge with extra ansible-playbook arguments ( Same like: molecule converge -- --tags foo,bar --extra_vars "my_var=true").
required: false
scenario:
description: |
Run specific Molecule Scenario
required: false
os:
description: Image name.
required: false
default: ubuntu16
tag:
description: The container image tag.
required: false
default: latest
runs:
using: docker
image: docker://monolithprojects/github-action-molecule:1.5.0
env:
M_COMMAND: ${{ inputs.molecule_command }}
SCENARIO: ${{ inputs.scenario }}
EXTRA_ARGS: ${{ inputs.converge_extra_args }}
os: ${{ inputs.os }}
tag: ${{ inputs.tag }}