Skip to content

Commit 342dfdc

Browse files
authored
Merge pull request #6 from manala/fix-release
Fix release
2 parents ffc2bba + 94328ae commit 342dfdc

File tree

5 files changed

+40
-3
lines changed

5 files changed

+40
-3
lines changed

.github/workflows/release.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
id: metadata
3737
uses: CumulusDS/[email protected]
3838
with:
39-
file: ./galaxy.yml
39+
file: galaxy.yml
40+
version: version
4041

4142
- name: Build
4243
id: build

.github/workflows/test.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ jobs:
2727
- name: Integration
2828
run: |
2929
make test.integration VERBOSE=1
30+
31+
- name: Doc
32+
run: |
33+
make test.doc VERBOSE=1

Makefile

+14-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ lint:
1818
# Test #
1919
########
2020

21-
## Test - Run all tests (but coverage)
21+
## Test - Run all tests (but doc and coverage)
2222
test: test.sanity test.units test.integration
2323
.PHONY: test
2424

@@ -59,6 +59,19 @@ test.integration:
5959
--color yes
6060
.PHONY: test.integration
6161

62+
## Test - Run documentation tests [VERBOSE]
63+
test.doc: SHELL := $(MANALA_DOCKER_SHELL)
64+
test.doc:
65+
$(foreach type,module filter, \
66+
$(foreach plugin,$(shell ansible-doc --list manala.path --type $(type) | cut -d " " -f 1), \
67+
ansible-doc \
68+
$(if $(VERBOSE), --verbose) \
69+
--type $(type) \
70+
$(plugin) && \
71+
) \
72+
) true
73+
.PHONY: test.doc
74+
6275
## Test - Run coverage [VERBOSE]
6376
test.coverage: SHELL := $(MANALA_DOCKER_SHELL)
6477
test.coverage:

plugins/filter/join.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def join(elements, *paths):
1717

1818

1919
class FilterModule(object):
20-
''' Manala join jinja2 filters '''
20+
''' Manala path join jinja2 filters '''
2121

2222
def filters(self):
2323
filters = {

plugins/filter/join.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
DOCUMENTATION:
2+
name: join
3+
author:
4+
- Manala (@manala)
5+
short_description: Join path elements list to one or more path components
6+
description:
7+
- Returns a path elements list obtained by joining each element's path to one or more path components.
8+
positional: _input,_paths
9+
options:
10+
_input:
11+
description: A list of elements.
12+
type: list
13+
elements: object
14+
required: true
15+
_paths:
16+
description: A path, or a list of paths.
17+
type: list
18+
elements: str
19+
required: true

0 commit comments

Comments
 (0)